]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/acl-util.c
shared/acl-util: convert rd,wr,ex to a bitmask 16841/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 26 Aug 2020 08:59:32 +0000 (10:59 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 27 Aug 2020 08:20:12 +0000 (10:20 +0200)
commit567aeb5801e3df568ac336f5d7da945964912c32
treef320c8b9bc0256f5a8e02c286715245e4c516c3e
parent508fa02d6f112c323b0ed595da85cc5bcdd2d122
shared/acl-util: convert rd,wr,ex to a bitmask

I find this version much more readable.

Add replacement defines so that when acl/libacl.h is not available, the
ACL_{READ,WRITE,EXECUTE} constants are also defined. Those constants were
declared in the kernel headers already in 1da177e4c3f41524e886b7f1b8a0c1f,
so they should be the same pretty much everywhere.
src/core/execute.c
src/coredump/coredump.c
src/journal/journald-server.c
src/shared/acl-util.c
src/shared/acl-util.h
src/test/test-acl-util.c