Re: SEAndroid init.rc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2012-03-21 at 21:23 +0800, 乜聚虎 wrote:
> Hi,
> I was reading the SEAndroid code and I got confused about something. 
> There are some restorecon commands like 'restorecon /dev' in the
> init.rc file. I don't know 
> which files or folders should be 'restorecon' and why. Can anybody
> help me? 

/dev and /dev/socket are created by init before the policy is first
loaded and thus need to have their security context restored prior to
starting ueventd.

Some of the directories are created by init.rc (e.g. on first boot or
after a factory reset) and thus we must perform a restorecon to ensure
that they get the correct security context if they have a different
security context than the parent directory. It is analogous to the
existing chown/chmod commands, but only where we want to make a
distinction for the policy.

-- 
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 majordomo@xxxxxxxxxxxxx with
the words "unsubscribe selinux" without quotes as the message.


[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux