summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/attr/acl
Commit message (Collapse)AuthorAgeFilesLines
* acl.inc, run-ptest: improve ptest functionality on limited rootfsPeter Seebach2016-05-202-5/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* acl: Fix re pattern in test casesHe Zhe2016-03-072-0/+192
| | | | | | | | | | | ls adds a '.' at the end of the permission field list on SELinux machines, filter this out so root tests work on SELinux machines. And backport one patch for other tests. (From OE-Core rev: 2981d026460658fd2db7df3618d718fe6e8bfca0) Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* acl: fix the order of expected output of getfaclChong Lu2014-03-251-0/+198
| | | | | | | | | | | | The result of getfacl is sorted by user id. In Centos or RHEL, bin user id is 1 and daemon user id is 2. But in our image, bin user id is 2 and daemon user id is 1. The patch fixes this issue to make ptest pass. (From OE-Core rev: a5180e942c9315d280580773e72fe67f27629a3c) Signed-off-by: Chong Lu <Chong.Lu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* acl: enable ptest supportChong Lu2014-02-171-0/+7
| | | | | | | | | | | | Install acl test suite and run it as ptest. nfs test cases need depend on nfs service. So exclude them order to make ptest all pass. (From OE-Core rev: 9b42aacca362ea5c404e2fd3ac25a51790ba41a5) Signed-off-by: Chong Lu <Chong.Lu@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* acl: Update to 2.2.52Saul Wold2013-12-091-0/+59
Need to add configure.ac since it was not delivered in the tarball (From OE-Core rev: 3cedb6f45f596f755c471a320df3b184492b9d6c) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>