Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264563
b: refs/heads/master
c: ce8a432
h: refs/heads/master
i:
  264561: 189d90c
  264559: b92e687
v: v3
  • Loading branch information
Casey Schaufler authored and Casey Schaufler committed Oct 12, 2011
1 parent 37fd3c4 commit 1120c47
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 531f1d453ed8a8acee4015bd64e7bcc2eab939e4
refs/heads/master: ce8a432197d9892689eb4896f690b9fe6b3de598
5 changes: 2 additions & 3 deletions trunk/security/smack/smack.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ struct smack_known {

/*
* smackfs magic number
* smackfs macic number
*/
#define SMACK_MAGIC 0x43415d53 /* "SMAC" */

Expand All @@ -182,9 +181,9 @@ struct smack_known {
#define MAY_NOT 0

/*
* Number of access types used by Smack (rwxa)
* Number of access types used by Smack (rwxat)
*/
#define SMK_NUM_ACCESS_TYPE 4
#define SMK_NUM_ACCESS_TYPE 5

/*
* Smack audit data; is empty if CONFIG_AUDIT not set
Expand Down
10 changes: 8 additions & 2 deletions trunk/security/smack/smack_lsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,12 @@ static int smack_sb_umount(struct vfsmount *mnt, int flags)
* BPRM hooks
*/

/**
* smack_bprm_set_creds - set creds for exec
* @bprm: the exec information
*
* Returns 0 if it gets a blob, -ENOMEM otherwise
*/
static int smack_bprm_set_creds(struct linux_binprm *bprm)
{
struct task_smack *tsp = bprm->cred->security;
Expand Down Expand Up @@ -844,7 +850,7 @@ static void smack_inode_post_setxattr(struct dentry *dentry, const char *name,
return;
}

/*
/**
* smack_inode_getxattr - Smack check on getxattr
* @dentry: the object
* @name: unused
Expand All @@ -861,7 +867,7 @@ static int smack_inode_getxattr(struct dentry *dentry, const char *name)
return smk_curacc(smk_of_inode(dentry->d_inode), MAY_READ, &ad);
}

/*
/**
* smack_inode_removexattr - Smack check on removexattr
* @dentry: the object
* @name: name of the attribute
Expand Down
7 changes: 0 additions & 7 deletions trunk/security/smack/smackfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,6 @@ const char *smack_cipso_option = SMACK_CIPSO_OPTION;


#define SEQ_READ_FINISHED ((loff_t)-1)
/*
#define SEQ_READ_FINISHED 1
*/

/*
* Values for parsing cipso rules
Expand Down Expand Up @@ -475,10 +472,6 @@ static ssize_t smk_write_load(struct file *file, const char __user *buf,
if (!capable(CAP_MAC_ADMIN))
return -EPERM;

/*
return smk_write_load_list(file, buf, count, ppos, &smack_rule_list,
&smack_list_lock);
*/
return smk_write_load_list(file, buf, count, ppos, NULL, NULL);
}

Expand Down

0 comments on commit 1120c47

Please sign in to comment.