On Wed, Aug 21, 2013 at 09:54:20AM +0200, Dominick Grift wrote: > On Tue, 2013-08-20 at 15:05 -0500, Dan Pou wrote: > < snip > > > > > I addeded the system_r:my_daemon_t:s0 user_r:user_t:s0 role transition > > to /etc/selinux/mls/contexts/default_contexts. > > This got me to actually writing user_u:user_r:user_t:s0 for setexeccon, > > but I am still failing. It looks like it is failing in the > > selinux_trans_to_raw_context. I was thinking this was an issue with > > declaring the transition. > > What steps do I need to setup a role_transition and/or type_transistion? > > > > I tried adding the following to no avail: > > type_transition my_daemon_t non_security_file_type:process user_t; I did find a mistake on my side (deployment to test machine issue). I am still in the process of testing explicit role and type transition rules. > > Do I need more type_transitions, or addition role_transition > > declarations (aside from /etc/selinux/mls/contexts/default_context)? > > Some things ( but i am not sure ): > > The target role needs to be associated to the identity (probably already > done) > The target role needs to be associated to the target domain (probably > already done) > The source role needs to be allowed to manually change to the target > role (probably already done) > > The source domain needs various permissions to change identity, role, > and set mls range (policy constraints: mlsprocsetsl > can_change_process_identity can_change_process_role ) > The target security level must be within range of the selinux identity > associated level, range) > > You probably need to specify the entrypoint to the target domain > You probably need to allow the actual transition permission from source > domain to target domain (allow my_daemon_t user_t:process transition) Wouldn't these settings be associated with AVC denials? I am running Permissive and have no denials showing up. > > As far as i know, the function calculates if what you specified is valid > first > > I do not think you need a automatic role transition rule (it changes > manually instead i believe) I thought you still needed to specify a transition with setexeccon. Is this not true? > > So you have to make sure those prerequisites are dealt with > > I might be overlooking things and i might be totally wrong > Thanks for getting back. -Dan -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with the words "unsubscribe selinux" without quotes as the message.