From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: how to run setsebool -P in chroot? To: Bond Masuda , selinux@tycho.nsa.gov References: <20150911134151.GA6297@x250> <55FC9E8B.8000604@jlbond.com> From: Stephen Smalley Message-ID: <56006495.8080003@tycho.nsa.gov> Date: Mon, 21 Sep 2015 16:12:05 -0400 MIME-Version: 1.0 In-Reply-To: <55FC9E8B.8000604@jlbond.com> Content-Type: text/plain; charset=windows-1252 List-Id: "Security-Enhanced Linux \(SELinux\) mailing list" List-Post: List-Help: On 09/18/2015 07:30 PM, Bond Masuda wrote: > Hello, > > I'm trying to run setsebool in a chroot environment like: > > chroot /mnt/test /usr/sbin/setsebool -P antivirus_can_scan_system 1 > > But I get: > > setsebool: SELinux is disabled. > > I'm guessing this is because the environment is not running. Is there a > way around this? I need to be able to set some of the booleans this way. I would try using semanage boolean -N instead of setsebool -P.