Magisk/native/jni/utils/include/selinux.h

25 lines
690 B
C
Raw Normal View History

2018-09-27 06:09:59 +02:00
#pragma once
2018-11-03 08:06:01 +01:00
#ifdef __cplusplus
extern "C" {
#endif
2019-03-14 11:34:22 +01:00
extern void (*freecon)(char *con);
extern int (*setcon)(const char *con);
extern int (*getfilecon)(const char *path, char **con);
extern int (*lgetfilecon)(const char *path, char **con);
extern int (*fgetfilecon)(int fd, char **con);
extern int (*setfilecon)(const char *path, const char *con);
extern int (*lsetfilecon)(const char *path, const char *con);
extern int (*fsetfilecon)(int fd, const char *con);
void getfilecon_at(int dirfd, const char *name, char **con);
void setfilecon_at(int dirfd, const char *name, const char *con);
2018-09-27 06:09:59 +02:00
void selinux_builtin_impl();
2018-09-28 00:26:41 +02:00
void dload_selinux();
2018-09-27 06:09:59 +02:00
void restorecon();
2018-11-03 08:06:01 +01:00
#ifdef __cplusplus
}
#endif