Skip to contentSkip to conversation

staff_t runs cronjobs as cronjob_t instead of staff_t in Fedora 11

refpolicy Dominick Grift 3 participants 4 messages May 21, 2009 – May 27, 2009

lore
Share & tools
lore
#0 lore raw

I am not sure if this issue can be reproduced on non Redhat distros but here in Fedora 11 cronjobs by staff_t get executed in the cronjob_t domain.

This is not very handy because if staff_t wants to back up his home directory for example, then cronjob_t cannot access it.

I am wondering why it runs as cronjob_t?

#1 lore raw
Quoted 8 lines · Dominick Grift

I am not sure if this issue can be reproduced on non Redhat distros but here in Fedora 11 cronjobs by staff_t get executed in the cronjob_t domain.

This is not very handy because if staff_t wants to back up his home directory for example, then cronjob_t cannot access it.

I am wondering why it runs as cronjob_t?

Running in cronjob_t is expected. However it has permissions to manage user home dir content, so I'd only expect denials if the seuser didn't match.

Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150
#2 lore raw
Quoted 5 lines · Christopher J. PeBenito
Quoted 4 lines · Dominick Grift

I am not sure if this issue can be reproduced on non Redhat distros but here in Fedora 11 cronjobs by staff_t get executed in the cronjob_t domain.

Quoted 9 lines
Quoted 4 lines

This is not very handy because if staff_t wants to back up his home directory for example, then cronjob_t cannot access it.

I am wondering why it runs as cronjob_t?

Running in cronjob_t is expected. However it has permissions to manage user home dir content, so I'd only expect denials if the seuser didn't match.

I guess this is a RedHat specific issue. I have reported the "bug" to bugzilla.redhat.com.

Not sure if Fedora patched out the part where it has access to user home content but here on Fedora 11 cronjob_t cannot access it and UBAC isnt enabled.

#3 lore raw
Quoted 18 lines · Dominick Grift
Quoted 5 lines · Christopher J. PeBenito
Quoted 4 lines · Dominick Grift

I am not sure if this issue can be reproduced on non Redhat distros but here in Fedora 11 cronjobs by staff_t get executed in the cronjob_t domain.

Quoted 8 lines
Quoted 4 lines

This is not very handy because if staff_t wants to back up his home directory for example, then cronjob_t cannot access it.

I am wondering why it runs as cronjob_t?

Running in cronjob_t is expected. However it has permissions to manage user home dir content, so I'd only expect denials if the seuser didn't match.

I guess this is a RedHat specific issue. I have reported the "bug" to bugzilla.redhat.com.

Quoted 8 lines

Not sure if Fedora patched out the part where it has access to user home content but here on Fedora 11 cronjob_t cannot access it and UBAC isnt enabled.

_______________________________________________
refpolicy mailing list
refpolicy at oss.tresys.com
http://oss.tresys.com/mailman/listinfo/refpolicy

It has never made any sense to me to run cronjobs in a context other then the users context. It just creates bugs and potentially mislabeled files. For example a user runs a cronjob that creates content in the users directory. If he runs it as him self the file gets labeled correctly. If he runs it in Cron it does not. The user has the expectation that this is a bug and he is correct.