mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Add regression test for ACLs on device files - mostly to make
sure we don't crash on attempt to set ACL on them.
This commit is contained in:
parent
8101afb656
commit
2bf078b30b
1 changed files with 16 additions and 0 deletions
|
|
@ -387,3 +387,19 @@ $ ls -l fff | cut -d' ' -f1
|
|||
|
||||
$ rm fff
|
||||
|
||||
# Test if we deal properly with device files.
|
||||
$ mknod bbb b 1 1
|
||||
$ setfacl -m u:42:r,g:43:w bbb
|
||||
> setfacl: acl_get_file() failed: Operation not supported
|
||||
$ ls -l bbb | cut -d' ' -f1
|
||||
> brw-r--r--
|
||||
|
||||
$ rm bbb
|
||||
|
||||
$ mknod ccc c 1 1
|
||||
$ setfacl -m u:42:r,g:43:w ccc
|
||||
> setfacl: acl_get_file() failed: Operation not supported
|
||||
$ ls -l ccc | cut -d' ' -f1
|
||||
> crw-r--r--
|
||||
|
||||
$ rm ccc
|
||||
|
|
|
|||
Loading…
Reference in a new issue