Browse Subversion Repository
Diff of /trunk/caitsith-patch/include/linux/lsm2caitsith.h
Parent Directory
| Revision Log
| Patch
| 28 |
#endif |
#endif |
| 29 |
int ccs_file_ioctl(struct file *file, unsigned int cmd, unsigned long arg); |
int ccs_file_ioctl(struct file *file, unsigned int cmd, unsigned long arg); |
| 30 |
int ccs_file_fcntl(struct file *file, unsigned int cmd, unsigned long arg); |
int ccs_file_fcntl(struct file *file, unsigned int cmd, unsigned long arg); |
| 31 |
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0) |
| 32 |
|
int ccs_file_open(struct file *file); |
| 33 |
|
#else |
| 34 |
int ccs_file_open(struct file *file, const struct cred *cred); |
int ccs_file_open(struct file *file, const struct cred *cred); |
| 35 |
|
#endif |
| 36 |
int ccs_socket_create(int family, int type, int protocol, int kern); |
int ccs_socket_create(int family, int type, int protocol, int kern); |
| 37 |
int ccs_socket_bind(struct socket *sock, struct sockaddr *address, |
int ccs_socket_bind(struct socket *sock, struct sockaddr *address, |
| 38 |
int addrlen); |
int addrlen); |
| 132 |
{ |
{ |
| 133 |
return 0; |
return 0; |
| 134 |
} |
} |
| 135 |
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0) |
| 136 |
|
static inline int ccs_file_open(struct file *file) |
| 137 |
|
{ |
| 138 |
|
return 0; |
| 139 |
|
} |
| 140 |
|
#else |
| 141 |
static inline int ccs_file_open(struct file *file, const struct cred *cred) |
static inline int ccs_file_open(struct file *file, const struct cred *cred) |
| 142 |
{ |
{ |
| 143 |
return 0; |
return 0; |
| 144 |
} |
} |
| 145 |
|
#endif |
| 146 |
static inline int ccs_socket_create(int family, int type, int protocol, |
static inline int ccs_socket_create(int family, int type, int protocol, |
| 147 |
int kern) |
int kern) |
| 148 |
{ |
{ |
|
|
Legend:
| Removed from v.266 |
|
| changed lines |
| |
Added in v.267 |
|
|
| |