aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/capability.h5
-rw-r--r--include/linux/platform_data/st33zp24.h2
-rw-r--r--include/linux/seccomp.h14
-rw-r--r--include/linux/tpm.h5
4 files changed, 15 insertions, 11 deletions
diff --git a/include/linux/capability.h b/include/linux/capability.h
index 00690ff92edf..5f3c63dde2d5 100644
--- a/include/linux/capability.h
+++ b/include/linux/capability.h
@@ -206,6 +206,7 @@ extern bool has_ns_capability_noaudit(struct task_struct *t,
206 struct user_namespace *ns, int cap); 206 struct user_namespace *ns, int cap);
207extern bool capable(int cap); 207extern bool capable(int cap);
208extern bool ns_capable(struct user_namespace *ns, int cap); 208extern bool ns_capable(struct user_namespace *ns, int cap);
209extern bool ns_capable_noaudit(struct user_namespace *ns, int cap);
209#else 210#else
210static inline bool has_capability(struct task_struct *t, int cap) 211static inline bool has_capability(struct task_struct *t, int cap)
211{ 212{
@@ -233,6 +234,10 @@ static inline bool ns_capable(struct user_namespace *ns, int cap)
233{ 234{
234 return true; 235 return true;
235} 236}
237static inline bool ns_capable_noaudit(struct user_namespace *ns, int cap)
238{
239 return true;
240}
236#endif /* CONFIG_MULTIUSER */ 241#endif /* CONFIG_MULTIUSER */
237extern bool capable_wrt_inode_uidgid(const struct inode *inode, int cap); 242extern bool capable_wrt_inode_uidgid(const struct inode *inode, int cap);
238extern bool file_ns_capable(const struct file *file, struct user_namespace *ns, int cap); 243extern bool file_ns_capable(const struct file *file, struct user_namespace *ns, int cap);
diff --git a/include/linux/platform_data/st33zp24.h b/include/linux/platform_data/st33zp24.h
index 817dfdb37885..6f0fb6ebd7db 100644
--- a/include/linux/platform_data/st33zp24.h
+++ b/include/linux/platform_data/st33zp24.h
@@ -1,6 +1,6 @@
1/* 1/*
2 * STMicroelectronics TPM Linux driver for TPM 1.2 ST33ZP24 2 * STMicroelectronics TPM Linux driver for TPM 1.2 ST33ZP24
3 * Copyright (C) 2009 - 2015 STMicroelectronics 3 * Copyright (C) 2009 - 2016 STMicroelectronics
4 * 4 *
5 * This program is free software; you can redistribute it and/or modify 5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by 6 * it under the terms of the GNU General Public License as published by
diff --git a/include/linux/seccomp.h b/include/linux/seccomp.h
index 2296e6b2f690..ecc296c137cd 100644
--- a/include/linux/seccomp.h
+++ b/include/linux/seccomp.h
@@ -28,19 +28,13 @@ struct seccomp {
28}; 28};
29 29
30#ifdef CONFIG_HAVE_ARCH_SECCOMP_FILTER 30#ifdef CONFIG_HAVE_ARCH_SECCOMP_FILTER
31extern int __secure_computing(void); 31extern int __secure_computing(const struct seccomp_data *sd);
32static inline int secure_computing(void) 32static inline int secure_computing(const struct seccomp_data *sd)
33{ 33{
34 if (unlikely(test_thread_flag(TIF_SECCOMP))) 34 if (unlikely(test_thread_flag(TIF_SECCOMP)))
35 return __secure_computing(); 35 return __secure_computing(sd);
36 return 0; 36 return 0;
37} 37}
38
39#define SECCOMP_PHASE1_OK 0
40#define SECCOMP_PHASE1_SKIP 1
41
42extern u32 seccomp_phase1(struct seccomp_data *sd);
43int seccomp_phase2(u32 phase1_result);
44#else 38#else
45extern void secure_computing_strict(int this_syscall); 39extern void secure_computing_strict(int this_syscall);
46#endif 40#endif
@@ -61,7 +55,7 @@ struct seccomp { };
61struct seccomp_filter { }; 55struct seccomp_filter { };
62 56
63#ifdef CONFIG_HAVE_ARCH_SECCOMP_FILTER 57#ifdef CONFIG_HAVE_ARCH_SECCOMP_FILTER
64static inline int secure_computing(void) { return 0; } 58static inline int secure_computing(struct seccomp_data *sd) { return 0; }
65#else 59#else
66static inline void secure_computing_strict(int this_syscall) { return; } 60static inline void secure_computing_strict(int this_syscall) { return; }
67#endif 61#endif
diff --git a/include/linux/tpm.h b/include/linux/tpm.h
index 706e63eea080..da158f06e0b2 100644
--- a/include/linux/tpm.h
+++ b/include/linux/tpm.h
@@ -33,7 +33,12 @@ struct tpm_chip;
33struct trusted_key_payload; 33struct trusted_key_payload;
34struct trusted_key_options; 34struct trusted_key_options;
35 35
36enum TPM_OPS_FLAGS {
37 TPM_OPS_AUTO_STARTUP = BIT(0),
38};
39
36struct tpm_class_ops { 40struct tpm_class_ops {
41 unsigned int flags;
37 const u8 req_complete_mask; 42 const u8 req_complete_mask;
38 const u8 req_complete_val; 43 const u8 req_complete_val;
39 bool (*req_canceled)(struct tpm_chip *chip, u8 status); 44 bool (*req_canceled)(struct tpm_chip *chip, u8 status);