Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163278938
D57210.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
4 KB
Referenced Files
None
Subscribers
None
D57210.diff
View Options
diff --git a/tests/sys/acl/tools-posix.test b/tests/sys/acl/tools-posix.test
--- a/tests/sys/acl/tools-posix.test
+++ b/tests/sys/acl/tools-posix.test
@@ -49,7 +49,9 @@
> group::r--
> other::r--
-$ setfacl -m u:42:r,g:43:w xxx
+# UID u:42 and GID g:41 are chosen to be unused from
+# here onwards.
+$ setfacl -m u:42:r,g:41:w xxx
$ getfacl -n xxx
> # file: xxx
> # owner: root
@@ -57,7 +59,7 @@
> user::rw-
> user:42:r--
> group::r--
-> group:43:-w-
+> group:41:-w-
> mask::rw-
> other::r--
@@ -84,7 +86,7 @@
> user::rw-
> user:42:r--
> group::r--
-> group:43:-w-
+> group:41:-w-
> mask::rw-
> other::r--
@@ -117,7 +119,7 @@
> # group: wheel
> user::rw-
> group::r--
-> group:43:-w-
+> group:41:-w-
> mask::rw-
> other::r--
@@ -129,7 +131,7 @@
> user::rw-
> user:42:r--
> group::r--
-> group:43:-w-
+> group:41:-w-
> mask::rw-
> other::r--
@@ -141,18 +143,18 @@
> # group: wheel
> user::rw-
> group::r--
-> group:43:-w-
+> group:41:-w-
> mask::rw-
> other::r--
-$ setfacl -m g:43:r xxx
+$ setfacl -m g:41:r xxx
$ getfacl -n xxx
> # file: xxx
> # owner: root
> # group: wheel
> user::rw-
> group::r--
-> group:43:r--
+> group:41:r--
> mask::r--
> other::r--
@@ -170,14 +172,14 @@
> # group: wheel
> user::rw-
> group::r--
-> group:43:r--
+> group:41:r--
> mask::r--
> other::r--
$ rm yyy
# Test removing entries by... by example?
-$ setfacl -m u:42:r,g:43:w xxx
+$ setfacl -m u:42:r,g:41:w xxx
$ setfacl -x u:42: xxx
$ getfacl -n xxx
> # file: xxx
@@ -185,7 +187,7 @@
> # group: wheel
> user::rw-
> group::r--
-> group:43:-w-
+> group:41:-w-
> mask::rw-
> other::r--
@@ -223,7 +225,7 @@
> -rw-r--r--
> -rw-r--r--
-$ setfacl -m u:42:x,g:43:w nnn xxx yyy zzz
+$ setfacl -m u:42:x,g:41:w nnn xxx yyy zzz
> setfacl: nnn: acl_get_file() failed: No such file or directory
$ ls -l nnn xxx yyy zzz | cut -d' ' -f1
@@ -237,21 +239,21 @@
> user::rw-
> user:42:--x
> group::r--
-> group:43:-w-
+> group:41:-w-
> mask::rwx
> other::r--
>
> user::rw-
> user:42:--x
> group::r--
-> group:43:-w-
+> group:41:-w-
> mask::rwx
> other::r--
>
> user::rw-
> user:42:--x
> group::r--
-> group:43:-w-
+> group:41:-w-
> mask::rwx
> other::r--
@@ -277,7 +279,7 @@
# Check whether chmod actually does what it should do.
$ touch xxx
-$ setfacl -m u:42:rwx,g:43:rwx xxx
+$ setfacl -m u:42:rwx,g:41:rwx xxx
$ chmod 600 xxx
$ getfacl -n xxx
> # file: xxx
@@ -286,7 +288,7 @@
> user::rw-
> user:42:rwx # effective: ---
> group::r-- # effective: ---
-> group:43:rwx # effective: ---
+> group:41:rwx # effective: ---
> mask::---
> other::---
@@ -298,7 +300,7 @@
> user::---
> user:42:rwx # effective: rw-
> group::r--
-> group:43:rwx # effective: rw-
+> group:41:rwx # effective: rw-
> mask::rw-
> other::---
@@ -368,10 +370,10 @@
$ rm ddd/xxx
$ setfacl -dm u::rwx,g::rx,o::rx,mask::rwx ddd
-$ setfacl -dm g:42:rwx,u:43:r ddd
+$ setfacl -dm g:42:rwx,u:41:r ddd
$ getfacl -dq ddd
> user::rwx
-> user:43:r--
+> user:41:r--
> group::r-x
> group:42:rwx
> mask::rwx
@@ -380,7 +382,7 @@
$ touch ddd/xxx
$ getfacl -q ddd/xxx
> user::rw-
-> user:43:r--
+> user:41:r--
> group::r-x # effective: r--
> group:42:rwx # effective: r--
> mask::r--
@@ -389,7 +391,7 @@
$ mkdir ddd/ddd
$ getfacl -q ddd/ddd
> user::rwx
-> user:43:r--
+> user:41:r--
> group::r-x
> group:42:rwx # effective: r-x
> mask::r-x
@@ -404,7 +406,7 @@
$ ls -l fff | cut -d' ' -f1
> prw-r--r--
-$ setfacl -m u:42:r,g:43:w fff
+$ setfacl -m u:42:r,g:41:w fff
$ getfacl fff
> # file: fff
> # owner: root
@@ -412,7 +414,7 @@
> user::rw-
> user:42:r--
> group::r--
-> group:43:-w-
+> group:41:-w-
> mask::rw-
> other::r--
@@ -435,7 +437,7 @@
# Test if we deal properly with device files.
$ mknod bbb b 1 1
-$ setfacl -m u:42:r,g:43:w bbb
+$ setfacl -m u:42:r,g:41:w bbb
> setfacl: bbb: acl_get_file() failed: Operation not supported
$ ls -l bbb | cut -d' ' -f1
> brw-r--r--
@@ -443,7 +445,7 @@
$ rm bbb
$ mknod ccc c 1 1
-$ setfacl -m u:42:r,g:43:w ccc
+$ setfacl -m u:42:r,g:41:w ccc
> setfacl: ccc: acl_get_file() failed: Operation not supported
$ ls -l ccc | cut -d' ' -f1
> crw-r--r--
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 22, 4:38 PM (15 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33532381
Default Alt Text
D57210.diff (4 KB)
Attached To
Mode
D57210: acl/tools-posix.test: use gid=41 to avoid collision with GID_AUDIO
Attached
Detach File
Event Timeline
Log In to Comment