Re: [PATCH v2] setfiles converted to fts

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

 



On Wed, 2009-07-01 at 16:39 -0400, Thomas Liu wrote:
> Here is an updated version of the fts setfiles patch.
> 
<snip>
> We're looking into skipping folders that are mounted under file systems
> that do not have the seclabel flag for the next patch.

You'll have to make that logic kernel version dependent, as that flag
was only introduced in Linux 2.6.30, ala:

#include <sys/utsname.h>

struct utsname uts;

if (uname(&uts) == 0 && strverscmp(uts.release, "2.6.30") >= 0)
	use_seclabel = 1;

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