From: Russell Coker <russell@coker.com.au>
To: Colin Walters <walters@verbum.org>, SE Linux <selinux@tycho.nsa.gov>
Subject: Re: rssh.{te,fc}
Date: Mon, 7 Jul 2003 20:14:38 +1000 [thread overview]
Message-ID: <200307072014.38841.russell@coker.com.au> (raw)
In-Reply-To: <1057551740.1241.10.camel@columbia>
On Mon, 7 Jul 2003 14:22, Colin Walters wrote:
> I've written a quick rssh.te; this is for the rssh program:
> http://pizzashack.org/rssh/
>
> Basically rssh is a restricted shell that just allows people to execute
> scp.
>
> This is my first from-scratch .te file, so I'd appreciate if people
> could give it a sanity check. To set this all up, I added another user
> (in this case named haskelluser), then added:
>
> user haskelluser roles { rssh_r };
>
> to /etc/selinux/users. Make sense?
The policy itself looks OK, but I'm not sure about the concept.
Maybe it would be better to have full_user_role(rssh) and then change the
sshd.te to have something like the following:
dnl domain_trans($1, shell_exec_t, unpriv_userdomain)
domain_trans($1, shell_exec_t, { user_t staff_t })
domain_trans($1, rssh_exec_t, rssh_t)
Of course this relies on the rssh program to prevent the user from getting an
interactive shell.
Another possibility is to implement the functionality of rssh in SE Linux
policy alone. We could have separate macros for the different areas of
functionality provided by full_user_role() and make it easy to create a role
with a sub-set of that functionality (user.te is a mess anyway and really
needs to be sorted out).
Just some ideas to consider.
--
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/ Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/ My home page
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
next prev parent reply other threads:[~2003-07-07 10:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-07 4:22 rssh.{te,fc} Colin Walters
2003-07-07 10:14 ` Russell Coker [this message]
2003-07-07 12:39 ` rssh.{te,fc} Tom
2003-07-07 17:39 ` rssh.{te,fc} Colin Walters
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200307072014.38841.russell@coker.com.au \
--to=russell@coker.com.au \
--cc=selinux@tycho.nsa.gov \
--cc=walters@verbum.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.