diff options
author | Jim Meyering <meyering@redhat.com> | 2008-10-21 16:10:31 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-10-21 18:05:55 +0200 |
commit | aa67daf63b8a0fe1a99fd79e50c1d5068fb430b8 (patch) | |
tree | 0c7ac901361884f59b426a5151ac1cf6a3fc9941 /gl/lib | |
parent | f7a009c17c0fb39182aefb71ce238a0928728c29 (diff) | |
download | coreutils-aa67daf63b8a0fe1a99fd79e50c1d5068fb430b8.tar.xz |
move selinux-h module from gl/ to gnulib
* gl/lib/se-context.in.h: Remove file.
* gl/lib/se-selinux.in.h: Likewise.
* gl/m4/selinux-context-h.m4: Likewise.
* gl/m4/selinux-selinux-h.m4: Likewise.
* gl/modules/selinux-h: Likewise.
Diffstat (limited to 'gl/lib')
-rw-r--r-- | gl/lib/se-context.in.h | 31 | ||||
-rw-r--r-- | gl/lib/se-selinux.in.h | 57 |
2 files changed, 0 insertions, 88 deletions
diff --git a/gl/lib/se-context.in.h b/gl/lib/se-context.in.h deleted file mode 100644 index ec88a0318..000000000 --- a/gl/lib/se-context.in.h +++ /dev/null @@ -1,31 +0,0 @@ -#ifndef SELINUX_CONTEXT_H -# define SELINUX_CONTEXT_H - -# include <errno.h> -/* Some systems don't have ENOTSUP. */ -# ifndef ENOTSUP -# ifdef ENOSYS -# define ENOTSUP ENOSYS -# else -/* Some systems don't have ENOSYS either. */ -# define ENOTSUP EINVAL -# endif -# endif - -typedef int context_t; -static inline context_t context_new (char const *s) - { errno = ENOTSUP; return 0; } -static inline char *context_str (context_t con) - { errno = ENOTSUP; return (void *) 0; } -static inline void context_free (context_t c) {} - -static inline int context_user_set (context_t sc, char const *s) - { errno = ENOTSUP; return -1; } -static inline int context_role_set (context_t sc, char const *s) - { errno = ENOTSUP; return -1; } -static inline int context_range_set (context_t sc, char const *s) - { errno = ENOTSUP; return -1; } -static inline int context_type_set (context_t sc, char const *s) - { errno = ENOTSUP; return -1; } - -#endif diff --git a/gl/lib/se-selinux.in.h b/gl/lib/se-selinux.in.h deleted file mode 100644 index aeaf95002..000000000 --- a/gl/lib/se-selinux.in.h +++ /dev/null @@ -1,57 +0,0 @@ -#ifndef SELINUX_SELINUX_H -# define SELINUX_SELINUX_H - -# include <sys/types.h> -# include <errno.h> -/* Some systems don't have ENOTSUP. */ -# ifndef ENOTSUP -# ifdef ENOSYS -# define ENOTSUP ENOSYS -# else -/* Some systems don't have ENOSYS either. */ -# define ENOTSUP EINVAL -# endif -# endif - -typedef unsigned short security_class_t; -# define security_context_t char* -# define is_selinux_enabled() 0 - -static inline int getcon (security_context_t *con) - { errno = ENOTSUP; return -1; } -static inline void freecon (security_context_t con) {} - - -static inline int getfscreatecon (security_context_t *con) - { errno = ENOTSUP; return -1; } -static inline int setfscreatecon (security_context_t con) - { errno = ENOTSUP; return -1; } -static inline int matchpathcon (char const *s, mode_t m, - security_context_t *con) - { errno = ENOTSUP; return -1; } -static inline int getfilecon (char const *s, security_context_t *con) - { errno = ENOTSUP; return -1; } -static inline int lgetfilecon (char const *s, security_context_t *con) - { errno = ENOTSUP; return -1; } -static inline int setfilecon (char const *s, security_context_t con) - { errno = ENOTSUP; return -1; } -static inline int lsetfilecon (char const *s, security_context_t con) - { errno = ENOTSUP; return -1; } -static inline int fsetfilecon (int fd, security_context_t con) - { errno = ENOTSUP; return -1; } - -static inline int security_check_context (security_context_t con) - { errno = ENOTSUP; return -1; } -static inline int security_check_context_raw (security_context_t con) - { errno = ENOTSUP; return -1; } -static inline int setexeccon (security_context_t con) - { errno = ENOTSUP; return -1; } -static inline int security_compute_create (security_context_t scon, - security_context_t tcon, - security_class_t tclass, - security_context_t *newcon) - { errno = ENOTSUP; return -1; } -static inline int matchpathcon_init_prefix (char const *path, - char const *prefix) - { errno = ENOTSUP; return -1; } -#endif |