diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-01-14 02:21:51 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-01-14 23:18:33 +0100 |
commit | 01b725684f6ba54f0db815669e4e07eb0e02fedb (patch) | |
tree | 26dc8954b513cbc33347f3c9ae1fbbfc0a776f7e /src/shared/util.h | |
parent | 45030287af1e8e76b0feb1cfc3011a0ef2b37d0d (diff) |
machined: use the FS_IMMUTABLE_FL file flag, if available, to implement a "read-only" concept for raw disk images, too
Diffstat (limited to 'src/shared/util.h')
-rw-r--r-- | src/shared/util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/util.h b/src/shared/util.h index e58a17a825..5d9637efc0 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -1077,4 +1077,7 @@ int same_fd(int a, int b); int chattr_fd(int fd, bool b, unsigned mask); int chattr_path(const char *p, bool b, unsigned mask); +int read_attr_fd(int fd, unsigned *ret); +int read_attr_path(const char *p, unsigned *ret); + #define RLIMIT_MAKE_CONST(lim) ((struct rlimit) { lim, lim }) |