mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
6f54d8136b
Check that suid/sgid bits are cleared on direct write. XFS triggered WARN_ON_ONCE in this case. Patchset from Jan Kara fixed the warning: http://oss.sgi.com/archives/xfs/2014-12/msg00071.html This test is inspired by a test case from Eric Sandeen, and follows the test steps in generic/193. This test requires direct I/O, it's not added to generic/193 but to a new test, so that generic/193 still runs on filesystems don't have direct I/O support. Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Eryu Guan <eguan@redhat.com>
15 lines
331 B
Plaintext
15 lines
331 B
Plaintext
QA output created by 355
|
|
Check that suid/sgid bits are cleared after direct write
|
|
== with no exec perm
|
|
before: -rwSr-Sr--
|
|
after: -rw-r-Sr--
|
|
== with user exec perm
|
|
before: -rwsr-Sr--
|
|
after: -rwxr-Sr--
|
|
== with group exec perm
|
|
before: -rwSr-sr--
|
|
after: -rw-r-xr--
|
|
== with user+group exec perm
|
|
before: -rwsr-sr--
|
|
after: -rwxr-xr--
|