Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am a newbie at selinux. My application's daemon's are running with context inherited from the parent process INIT. Following is the output which I get from

`ps -eZ|grep daemon
{{ system_u:system_r:initrc_t:s0 5457 ? 00:00:02 daemon }}.

My requirement is that it should not inherit the context. I am fine with the daemon having an unconfined context. What should I look at ?

I read up on it that the context gets inherited but how to stop this.

What I have tried:

I read up on it that the context gets inherited but how to stop this.
Posted
Comments
Richard MacCutchan 8-Sep-17 2:52am    
Why would you want to?
k5054 8-Sep-17 11:11am    
Maybe take a look at how your system launches sshd. On my CentOS 7 system that shows as

system_u:system_r:sshd_t:s0-s0:c0.c1023

How you get there will depend on if your system is using inittab, upstart or systemd to launch processes from init.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900