diff options
author | Peter Seebach <peter.seebach@windriver.com> | 2016-05-18 16:30:47 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-20 10:20:55 +0100 |
commit | 070ea45b6cf99227c208edf58a0c79657a3702fc (patch) | |
tree | 868881eae38036e4c9cec4f3883298db5f963367 /meta/recipes-support/attr/acl.inc | |
parent | 599933cfe19dbe746ec0fd8be976a1682d5aef82 (diff) | |
download | poky-070ea45b6cf99227c208edf58a0c79657a3702fc.tar.gz |
acl.inc, run-ptest: improve ptest functionality on limited rootfs
ACL's ptest has a handful of failure modes which can be triggered by
a restrictive or small system. First, the ptest requires that daemon
be in the bin group, which run-ptest attempts to do using gpasswd,
but gpasswd is part of shadow, and oe-core removes shadow when it
doesn't think shadow will be needed. Even if, say, a package has
RDEPENDS on it. Whoops. So we manually sed the group file. This
will probably work.
Second, the filesystem used for the test has to support ACLs,
so we create a dummy ext3 filesystem and use that.
Third, the root/permissions test relies on the assumption that
"mkdir d" produces a directory which non-root users can access,
but in a secure product which defaults to umask 077, this doesn't
work. (That fix has been separately reported to upstream acl
through their bug report form.)
(This may prevent the test from running without mkfs.ext3, but it
allows the test to run on targets where root doesn't have ACL
support. Tradeoffs, tradeoffs everywhere.)
(From OE-Core rev: 0f1054e7db74bb4a196e00773915d7997b55bdf2)
Signed-off-by: Peter Seebach <peter.seebach@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/attr/acl.inc')
-rw-r--r-- | meta/recipes-support/attr/acl.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-support/attr/acl.inc b/meta/recipes-support/attr/acl.inc index 198fb4fed9..aebebfd965 100644 --- a/meta/recipes-support/attr/acl.inc +++ b/meta/recipes-support/attr/acl.inc | |||
@@ -14,6 +14,7 @@ SRC_URI = "${SAVANNAH_GNU_MIRROR}/acl/${BP}.src.tar.gz \ | |||
14 | file://acl-fix-the-order-of-expected-output-of-getfacl.patch \ | 14 | file://acl-fix-the-order-of-expected-output-of-getfacl.patch \ |
15 | file://test-fix-insufficient-quoting-of.patch \ | 15 | file://test-fix-insufficient-quoting-of.patch \ |
16 | file://test-fixups-on-SELinux-machines-for-root-testcases.patch \ | 16 | file://test-fixups-on-SELinux-machines-for-root-testcases.patch \ |
17 | file://test-fix-directory-permissions.patch \ | ||
17 | " | 18 | " |
18 | 19 | ||
19 | require ea-acl.inc | 20 | require ea-acl.inc |