chiark / gitweb /
journalctl: don't choke on entries with no MESSAGE= field
[elogind.git] / src / shared / label.h
index 3f880e363ae4408bf12f4c7a7625d32bf13d6752..1220b18965db29303e0ce58e872299fe866b1907 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foolabelhfoo
-#define foolabelhfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -29,7 +28,7 @@
 int label_init(const char *prefix);
 void label_finish(void);
 
-int label_fix(const char *path, bool ignore_enoent);
+int label_fix(const char *path, bool ignore_enoent, bool ignore_erofs);
 
 int label_socket_set(const char *label);
 void label_socket_clear(void);
@@ -41,10 +40,8 @@ void label_free(const char *label);
 
 int label_get_create_label_from_exe(const char *exe, char **label);
 
-int label_mkdir(const char *path, mode_t mode);
+int label_mkdir(const char *path, mode_t mode, bool apply);
 
 void label_retest_selinux(void);
 
 int label_bind(int fd, const struct sockaddr *addr, socklen_t addrlen);
-
-#endif