Description of problem: I thought I will be filing one bug per AVC denial while using staff_u, but there is too much junk here. I think that everything (except for bitlbee bugs) in the attached /var/log/audit/audit.log is relevant as a staff_u bug. Version-Release number of selected component (if applicable): selinux-policy-targeted-3.3.1-42.fc9.noarch (the rest is from Rawhide as of today)
Created attachment 304465 [details] /var/log/audit/audit.log
Created attachment 304468 [details] generated SELinux module When removing all lines from audit.log before I switched to using staff_u, I generated this selinux module with audit2allow
If you are testing staff_t please do not run in permissive mode. Any avc that you collected while in permissive mode is useless. Since staff_u is not allowed to run su, when in permissive mode you ran visudo which is also not allowed so lots of AVC messages are useless to me. You need to setup sudo before hand and user sudo to switch to unconfined_t when run as root.
OK, if I cannot run in permissive mode, than I am afraid I cannot use staff_u at all (need for developing stuff permissive mode).
Not sure why you need permissive mode for developing. I use staff_t which a transition to unconfined_t and I develop every day.
I am probably much worse programmer than you (well, I am not a programmer at all, strictly speaking) so when hacking on bitlbee (which is confined) I am hitting SELinux all the time.