diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-10-03 14:49:29 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2008-10-03 14:49:29 +0200 |
commit | 7744e869ecbfd2a508dbba46acfc2133a2f8f840 (patch) | |
tree | d8052926e17c1048cd8a302a9b4cebbaef3c945d /udev/udev.h | |
parent | 22c89d3fd78d7ef3f231fc837a47860efcc4cc9e (diff) |
move selinux noops to udev.h
Diffstat (limited to 'udev/udev.h')
-rw-r--r-- | udev/udev.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/udev/udev.h b/udev/udev.h index b54d313bff..6a685e6758 100644 --- a/udev/udev.h +++ b/udev/udev.h @@ -168,11 +168,19 @@ extern void file_unmap(void *buf, size_t bufsize); extern size_t buf_get_line(const char *buf, size_t buflen, size_t cur); /* udev_selinux */ +#ifndef USE_SELINUX +static inline void selinux_init(struct udev *udev) {} +static inline void selinux_exit(struct udev *udev) {} +static inline void udev_selinux_lsetfilecon(struct udev *udev, const char *file, unsigned int mode) {} +static inline void udev_selinux_setfscreatecon(struct udev *udev, const char *file, unsigned int mode) {} +static inline void udev_selinux_resetfscreatecon(struct udev *udev) {} +#else extern void selinux_init(struct udev *udev); extern void selinux_exit(struct udev *udev); extern void udev_selinux_lsetfilecon(struct udev *udev, const char *file, unsigned int mode); extern void udev_selinux_setfscreatecon(struct udev *udev, const char *file, unsigned int mode); extern void udev_selinux_resetfscreatecon(struct udev *udev); +#endif /* udevadm commands */ extern int udevadm_monitor(struct udev *udev, int argc, char *argv[]); |