4 * Copyright (C) 2004 Daniel Walsh
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation version 2 of the License.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 675 Mass Ave, Cambridge, MA 02139, USA.
20 #ifndef _UDEV_SELINUX_H
21 #define _UDEV_SELINUX_H
25 extern void selinux_setfilecon(const char *file, const char *devname, unsigned int mode);
26 extern void selinux_setfscreatecon(const char *file, const char *devname, unsigned int mode);
27 extern void selinux_init(void);
28 extern void selinux_restore(void);
32 static inline void selinux_setfilecon(const char *file, const char *devname, unsigned int mode) {}
33 static inline void selinux_setfscreatecon(const char *file, const char *devname, unsigned int mode) {}
34 static inline void selinux_init(void) {}
35 static inline void selinux_restore(void) {}
37 #endif /* USE_SELINUX */
38 #endif /* _UDEV_USE_SELINUX */