* rbacsep: RFC cron jobs execute under user domain
@ 2008-05-16 12:14 Christopher J. PeBenito
2008-05-16 12:31 ` Stephen Smalley
0 siblings, 1 reply; 3+ messages in thread
From: Christopher J. PeBenito @ 2008-05-16 12:14 UTC (permalink / raw)
To: SELinux Mail List
I think this has been talked about a little, but I'd like some feedback
on having cron jobs execute directly in the user domain rather than in a
special cron job domain. Was there a specific reason cron jobs were not
done this way from the start?
To be more specific, right now cron jobs will execute under
user_crond_t, staff_crond_t, etc. My thought is to have them run under
user_t, staff_t, etc. It seems logical since that tends to be how users
see cron jobs: running as the user/having the same permissions as the
user.
The system cron jobs (system_crond_t) would be unchanged.
--
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150
--
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: rbacsep: RFC cron jobs execute under user domain
2008-05-16 12:14 rbacsep: RFC cron jobs execute under user domain Christopher J. PeBenito
@ 2008-05-16 12:31 ` Stephen Smalley
2008-05-16 15:22 ` Daniel J Walsh
0 siblings, 1 reply; 3+ messages in thread
From: Stephen Smalley @ 2008-05-16 12:31 UTC (permalink / raw)
To: Christopher J. PeBenito; +Cc: SELinux Mail List
On Fri, 2008-05-16 at 08:14 -0400, Christopher J. PeBenito wrote:
> I think this has been talked about a little, but I'd like some feedback
> on having cron jobs execute directly in the user domain rather than in a
> special cron job domain. Was there a specific reason cron jobs were not
> done this way from the start?
It was to allow the policy writer to grant different permissions to user
cron jobs than to an interactive user session. I envisioned that the
policy writer might want to limit cron jobs to a subset of the user's
permissions given that they run without being tied to an authenticated
session and there is no way to establish a trusted path for them. But
if the distinction isn't really being used in practice, then perhaps it
doesn't need to be retained in the refpolicy as long as the mechanism
still allows for it.
It might also have an impact on entrypoint types, since crond applies an
entrypoint check between the cron job process context and the crontab
file context in order to prevent executing commands from an
untrustworthy source in a more privileged domain. So if you collapse
them, then crontab file contexts would also become an entrypoint for the
user domains. Which likely is harmless, but something to be aware of.
> To be more specific, right now cron jobs will execute under
> user_crond_t, staff_crond_t, etc. My thought is to have them run under
> user_t, staff_t, etc. It seems logical since that tends to be how users
> see cron jobs: running as the user/having the same permissions as the
> user.
>
> The system cron jobs (system_crond_t) would be unchanged.
>
--
Stephen Smalley
National Security Agency
--
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: rbacsep: RFC cron jobs execute under user domain
2008-05-16 12:31 ` Stephen Smalley
@ 2008-05-16 15:22 ` Daniel J Walsh
0 siblings, 0 replies; 3+ messages in thread
From: Daniel J Walsh @ 2008-05-16 15:22 UTC (permalink / raw)
To: Stephen Smalley; +Cc: Christopher J. PeBenito, SELinux Mail List
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Stephen Smalley wrote:
| On Fri, 2008-05-16 at 08:14 -0400, Christopher J. PeBenito wrote:
|> I think this has been talked about a little, but I'd like some feedback
|> on having cron jobs execute directly in the user domain rather than in a
|> special cron job domain. Was there a specific reason cron jobs were not
|> done this way from the start?
|
| It was to allow the policy writer to grant different permissions to user
| cron jobs than to an interactive user session. I envisioned that the
| policy writer might want to limit cron jobs to a subset of the user's
| permissions given that they run without being tied to an authenticated
| session and there is no way to establish a trusted path for them. But
| if the distinction isn't really being used in practice, then perhaps it
| doesn't need to be retained in the refpolicy as long as the mechanism
| still allows for it.
|
| It might also have an impact on entrypoint types, since crond applies an
| entrypoint check between the cron job process context and the crontab
| file context in order to prevent executing commands from an
| untrustworthy source in a more privileged domain. So if you collapse
| them, then crontab file contexts would also become an entrypoint for the
| user domains. Which likely is harmless, but something to be aware of.
|
|> To be more specific, right now cron jobs will execute under
|> user_crond_t, staff_crond_t, etc. My thought is to have them run under
|> user_t, staff_t, etc. It seems logical since that tends to be how users
|> see cron jobs: running as the user/having the same permissions as the
|> user.
|>
|> The system cron jobs (system_crond_t) would be unchanged.
|>
I have done it this way in Fedora for a couple of releases.
Fedora does not use user_crond_t any more.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iEYEARECAAYFAkgtppgACgkQrlYvE4MpobPJUACeO6xRPHtYt3wvjMaYeTgwCZvZ
0LcAni6Zg3SEGiJ1p2KOuhhGV9jgOKRM
=KUnw
-----END PGP SIGNATURE-----
--
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-05-16 15:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-16 12:14 rbacsep: RFC cron jobs execute under user domain Christopher J. PeBenito
2008-05-16 12:31 ` Stephen Smalley
2008-05-16 15:22 ` Daniel J Walsh
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.