Question about domain transition and MLS
I am writing policy for an application which runs in a domain with a SystemHigh range and attempts to launch (via fork/exec) an application (/bin/df) having it run in a domain with SystemLow range. My application performs a setexeccon, passing it the domain root:sysadm_r:sysadm_t:SystemLow, prior to the fork and exec.
My policy contains a rule to allow the application's domain type to do a process dyntransition to sysadm_t, but I continue to get an audit message indicating it cannot perform a dyntransition from its domain, system_u:system_r:my_app_t:SystemHigh to root:sysadm_r:sysadm_t:SystemLow.
I have added numerous mls macros to try to allow the process transition, such as mls_rangetrans_source, mls_rangetrans_target, and mls_process_set_level, but I still get the dyntransition audit message. Any suggestions for what mls attributes my application needs?
Thanks,
Rosalie