Received: from goalie.tycho.ncsc.mil (goalie.infosec.tycho.ncsc.mil [144.51.242.250]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id w8QDtuvI004279 for ; Wed, 26 Sep 2018 09:56:01 -0400 Date: Wed, 26 Sep 2018 13:55:33 +0000 (UTC) From: sajjad ahmed To: selinux@tycho.nsa.gov Message-ID: <1622272321.2871056.1537970133583@mail.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2871055_1999334878.1537970133581" References: <1622272321.2871056.1537970133583.ref@mail.yahoo.com> Subject: setfiles rootfs labeling List-Id: "Security-Enhanced Linux \(SELinux\) mailing list" List-Post: List-Help: ------=_Part_2871055_1999334878.1537970133581 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi all, I'm trying to use the setfiles utility (v 2.7) from policycoreutils to labe= l rootfs, it seems like setfiles exclude all the directories straight away = and labels nothing. I tried an older version (< 2.6) that works fine.=C2=A0= I'm using the yocto project to build packages and using native setfiles uti= lity to "label rootfs on the build=C2=A0system". Is it utility who is not d= oing what is supposed to? I'm using the following command to label rootfs,=C2=A0sudo=C2=A0setfiles=C2= =A0-v -r /tmp/sid/ /etc/selinux/refpolicy/contexts/files/file_contexts=C2= =A0/tmp/sid/ - Sajjad Ahmed ------=_Part_2871055_1999334878.1537970133581 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi all,

I'm tr= ying to use the setfiles utility (v 2.7) from policycoreutils to label root= fs, it seems like setfiles exclude all the directories straight away and la= bels nothing. I tried an older version (< 2.6) that works fine. I'm using the yocto project to build packages and using native setfiles= utility to "label rootfs on the build system". Is it utility who is n= ot doing what is supposed to?

I'm using the = following command to label rootfs, 
sudo setfiles -v -r /tmp/<= /span>sid/ /etc/selinux/refpolicy/= contexts/files/file_contexts /tmp/sid/


- Sajjad Ahmed
------=_Part_2871055_1999334878.1537970133581--