|
@@ -220,12 +220,6 @@ int security_quotactl(int cmds, int type, int id, struct super_block *sb);
|
|
|
int security_quota_on(struct dentry *dentry);
|
|
|
int security_syslog(int type);
|
|
|
int security_settime64(const struct timespec64 *ts, const struct timezone *tz);
|
|
|
-static inline int security_settime(const struct timespec *ts, const struct timezone *tz)
|
|
|
-{
|
|
|
- struct timespec64 ts64 = timespec_to_timespec64(*ts);
|
|
|
-
|
|
|
- return security_settime64(&ts64, tz);
|
|
|
-}
|
|
|
int security_vm_enough_memory_mm(struct mm_struct *mm, long pages);
|
|
|
int security_bprm_set_creds(struct linux_binprm *bprm);
|
|
|
int security_bprm_check(struct linux_binprm *bprm);
|
|
@@ -508,14 +502,6 @@ static inline int security_settime64(const struct timespec64 *ts,
|
|
|
return cap_settime(ts, tz);
|
|
|
}
|
|
|
|
|
|
-static inline int security_settime(const struct timespec *ts,
|
|
|
- const struct timezone *tz)
|
|
|
-{
|
|
|
- struct timespec64 ts64 = timespec_to_timespec64(*ts);
|
|
|
-
|
|
|
- return cap_settime(&ts64, tz);
|
|
|
-}
|
|
|
-
|
|
|
static inline int security_vm_enough_memory_mm(struct mm_struct *mm, long pages)
|
|
|
{
|
|
|
return __vm_enough_memory(mm, pages, cap_vm_enough_memory(mm, pages));
|
|
@@ -1191,6 +1177,7 @@ int security_unix_may_send(struct socket *sock, struct socket *other);
|
|
|
int security_socket_create(int family, int type, int protocol, int kern);
|
|
|
int security_socket_post_create(struct socket *sock, int family,
|
|
|
int type, int protocol, int kern);
|
|
|
+int security_socket_socketpair(struct socket *socka, struct socket *sockb);
|
|
|
int security_socket_bind(struct socket *sock, struct sockaddr *address, int addrlen);
|
|
|
int security_socket_connect(struct socket *sock, struct sockaddr *address, int addrlen);
|
|
|
int security_socket_listen(struct socket *sock, int backlog);
|
|
@@ -1262,6 +1249,12 @@ static inline int security_socket_post_create(struct socket *sock,
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
+static inline int security_socket_socketpair(struct socket *socka,
|
|
|
+ struct socket *sockb)
|
|
|
+{
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+
|
|
|
static inline int security_socket_bind(struct socket *sock,
|
|
|
struct sockaddr *address,
|
|
|
int addrlen)
|