diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-07-21 22:14:57 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-08-25 18:39:45 +0200 |
commit | 9db59d928356e63f0d06bdcc528e579b92c20b89 (patch) | |
tree | 57e88c8314de16f6a4afe3f01fb11ab76a53cce2 /src/test/test-acl-util.c | |
parent | acl-util: make sure acl_find_uid() initializes return parameters on success (diff) | |
download | systemd-9db59d928356e63f0d06bdcc528e579b92c20b89.tar.xz systemd-9db59d928356e63f0d06bdcc528e579b92c20b89.zip |
acl-util: beef up add_acls_for_user()
Let's add support for controlling r/w/x bits separetely. This is useful
for using it to control access to directories, where r + x shall be
enabled.
Diffstat (limited to 'src/test/test-acl-util.c')
-rw-r--r-- | src/test/test-acl-util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/test-acl-util.c b/src/test/test-acl-util.c index 9f0e594e67..9a3db3c8e3 100644 --- a/src/test/test-acl-util.c +++ b/src/test/test-acl-util.c @@ -41,8 +41,8 @@ static void test_add_acls_for_user(void) { } else uid = getuid(); - r = add_acls_for_user(fd, uid); - log_info_errno(r, "add_acls_for_user(%d, "UID_FMT"): %m", fd, uid); + r = fd_add_uid_acl_permission(fd, uid, true, false, false); + log_info_errno(r, "fd_add_uid_acl_permission(%i, "UID_FMT", true, false, false): %m", fd, uid); assert_se(r >= 0); cmd = strjoina("ls -l ", fn); @@ -53,7 +53,7 @@ static void test_add_acls_for_user(void) { /* set the acls again */ - r = add_acls_for_user(fd, uid); + r = fd_add_uid_acl_permission(fd, uid, true, false, false); assert_se(r >= 0); cmd = strjoina("ls -l ", fn); |