Re: init and /data/system policies

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

 



On Wed, 2012-08-01 at 13:48 -0700, William Roberts wrote:
> Currently the policy file is loaded early in init, before any
> filesystems are mounted. This means that if their is a policy file in
> data/system that should be used instead of the on in the rootdir
> ramfs, and the data/system policy is ignored until you do a reload. I
> was wondering what the security implications are of loading the policy
> after the mount, or is it better just to do a setprop to reload policy
> in an on fs section of init.rc?

Initial policy load needs to occur as early as possible so that all
processes and files are properly labeled.  When we looked at this issue
originally, we decided we needed to load policy from the rootfs
(initramfs image) and couldn't even wait until the system partition was
mounted, much less the data partition - too much happens before then.

So the plan is to either setprop selinux.reload_policy 1 (note that the
property name has changed due to AOSP review) as part of the init.rc
post-fs-data section or do the equivalent from SEAndroidManager or some
similar system app (or device admin API implementation in the
system_server).

-- 
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