History

Merge branch 'master' of git://git.infradead.org/users/eparis/selinux into next

Per pull request, for 3.5.

James Morris committed 14 years ago

Commit ff2bb042 parents cffee16 c737f8233 files · +422 −350Browse files

Showing the changes to include (2 of 33 files). Show all

Unified · Split

2 files
  1. include/linux/lsm_audit.h +0 −6
  2. include/linux/security.h +5 −8
include/linux/lsm_audit.h+0−6
@@ -53,7 +53,6 @@ struct common_audit_data { · 52 unmodified lines
5353 #define LSM_AUDIT_DATA_KMOD 8
5454 #define LSM_AUDIT_DATA_INODE 9
5555 #define LSM_AUDIT_DATA_DENTRY 10
56− struct task_struct *tsk;
5756 union {
5857 struct path path;
5958 struct dentry *dentry;
@@ -93,11 +92,6 @@ int ipv4_skb_to_auditdata(struct sk_buff *skb, · 33 unmodified lines
9392 int ipv6_skb_to_auditdata(struct sk_buff *skb,
9493 struct common_audit_data *ad, u8 *proto);
9594
96−/* Initialize an LSM audit data structure. */
97−#define COMMON_AUDIT_DATA_INIT(_d, _t) \
98− { memset((_d), 0, sizeof(struct common_audit_data)); \
99− (_d)->type = LSM_AUDIT_DATA_##_t; }
100−
10195 void common_lsm_audit(struct common_audit_data *a,
10296 void (*pre_audit)(struct audit_buffer *, void *),
10397 void (*post_audit)(struct audit_buffer *, void *));
include/linux/security.h+5−8
@@ -640,10 +640,7 @@ static inline void security_free_mnt_opts(struct security_mnt_opts *opts) · 639 unmodified lines
640640 * to receive an open file descriptor via socket IPC.
641641 * @file contains the file structure being received.
642642 * Return 0 if permission is granted.
643− *
644− * Security hook for dentry
645− *
646− * @dentry_open
643+ * @file_open
647644 * Save open-time permission checking state for later use upon
648645 * file_permission, and recheck access if anything has changed
649646 * since inode_permission.
@@ -1498,7 +1495,7 @@ struct security_operations { · 848 unmodified lines
14981495 int (*file_send_sigiotask) (struct task_struct *tsk,
14991496 struct fown_struct *fown, int sig);
15001497 int (*file_receive) (struct file *file);
1501− int (*dentry_open) (struct file *file, const struct cred *cred);
1498+ int (*file_open) (struct file *file, const struct cred *cred);
15021499
15031500 int (*task_create) (unsigned long clone_flags);
15041501 void (*task_free) (struct task_struct *task);
@@ -1757,7 +1754,7 @@ int security_file_set_fowner(struct file *file); · 252 unmodified lines
17571754 int security_file_send_sigiotask(struct task_struct *tsk,
17581755 struct fown_struct *fown, int sig);
17591756 int security_file_receive(struct file *file);
1760−int security_dentry_open(struct file *file, const struct cred *cred);
1757+int security_file_open(struct file *file, const struct cred *cred);
17611758 int security_task_create(unsigned long clone_flags);
17621759 void security_task_free(struct task_struct *task);
17631760 int security_cred_alloc_blank(struct cred *cred, gfp_t gfp);
@@ -2228,8 +2225,8 @@ static inline int security_file_receive(struct file *file) · 464 unmodified lines
22282225 return 0;
22292226 }
22302227
2231−static inline int security_dentry_open(struct file *file,
2232− const struct cred *cred)
2228+static inline int security_file_open(struct file *file,
2229+ const struct cred *cred)
22332230 {
22342231 return 0;
22352232 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t