Task SID 's
Hi
I am new to SELinux. I am planning to learn it by doing a Code Review. Currently I am Confused of Task SID Assignments & Binary Program SID to Task SID Converstions.
1. How does SID's are assigned to the init Task in the SELinux Code . Which code part handles that .
2. I found that binary program SID's assigned changes in to the Task SID's when they are loaded. Which code part in SELinux handles this part.
That is when a Binary Program is loaded it is assigned SID's and once it is loaded it becomes as task. How does the bprm_security_structure SID values are transfered in to the task_security_structure_sid Values ...
If anyone can guide me on these it would be really helpful for me to learn.
Thanks & Regards
Pragash.J
---------------------------------
Sponsored Link
Don't quit your job - take classes online and earn your degree in 1 year. Start Today
Quoted 6 lines · I_am alone
Hi
I am new to SELinux. I am planning to learn it by doing a Code
Review. Currently I am Confused of Task SID Assignments & Binary Program SID to Task SID Converstions.
Have you looked at the Implementing SELinux as a Linux Security Module technical report? Not entirely up to date, but still a useful resource:
http://www.nsa.gov/selinux/papers/module-abs.cfm
http://www.nsa.gov/selinux/papers/module/t1.html
Document sources included in the selinux-doc tarball,
http://www.nsa.gov/selinux/archives/selinux-doc-1.26.tgz
Quoted 2 lines
1. How does SID's are assigned to the init Task in the SELinux Code . Which code part handles that .
selinux_init() in security/selinux/hooks.c.
Described in:
http://www.nsa.gov/selinux/papers/module/x300.html
Quoted 8 lines
2. I found that binary program SID's assigned changes in to the Task SID's when they are loaded. Which code part in SELinux handles this part.
That is when a Binary Program is loaded it is assigned SID's and once it is loaded it becomes as task. How does the
bprm_security_structureSID values are transfered in to thetask_security_structure_sidValues ...
selinux_bprm_set_security() and selinux_bprm_apply_creds(). Described in:
http://www.nsa.gov/selinux/papers/module/x643.html
Quoted 2 lines
If anyone can guide me on these it would be really helpful for me to learn.
Signature · 8 lines
Stephen Smalley National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.