Gentoo Archives: gentoo-dev

From: Duncan <1i5t5.duncan@×××.net>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: fcaps.eclass: bringing filesystem capabilities to the tree
Date: Tue, 29 Jan 2013 12:15:19
Message-Id: pan.2013.01.29.12.14.57@cox.net
In Reply to: [gentoo-dev] fcaps.eclass: bringing filesystem capabilities to the tree by Mike Frysinger
1 Mike Frysinger posted on Fri, 25 Jan 2013 18:51:44 -0500 as excerpted:
2
3 > else
4 > local fstype=$(stat -f -c %T "${file}")
5 > ewarn "Could not set caps on '${file}' due to missing filesystem support."
6 > ewarn "Make sure you enable XATTR support for '${fstype}' in your kernel."
7 > fi
8
9 This needs a bit more information, please.
10 I had XATTR support enabled, but it wasn't enough.
11
12 For at least reiserfs, and presumably for ext4, since it has
13 similar kconfig options, *_FS_XATTR isn't enough,
14 *_FS_SECURITY must be enabled as well.
15
16 (*_FSPOSIX_ACL did NOT need to be enabled, however.)
17
18 So:
19
20 ewarn "Make sure you enable XATTR and SECURITY attribute
21 support for ${fstype} in your kernel."
22
23 Unfortunately, kernel-help for *_FS_SECURITY implies that it only needs
24 to be enabled for SELinux or the like, recommending that it be disabled
25 if you're not running such modules. Is it worth filing an upstream
26 mainline kernel bug on that as well, suggesting that it mention file-caps
27 as well?
28
29 --
30 Duncan - List replies preferred. No HTML msgs.
31 "Every nonfree program has a lord, a master --
32 and if you use the program, he is your master." Richard Stallman

Replies

Subject Author
Re: [gentoo-dev] Re: fcaps.eclass: bringing filesystem capabilities to the tree "Diego Elio Pettenò" <flameeyes@×××××××××.eu>