Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137591
b: refs/heads/master
c: 07feee8
h: refs/heads/master
i:
  137589: ff610a1
  137587: 5e80e1a
  137583: 94c58db
v: v3
  • Loading branch information
Paul Moore authored and James Morris committed Mar 28, 2009
1 parent a6861de commit fb894b1
Show file tree
Hide file tree
Showing 5 changed files with 162 additions and 119 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: 8651d5c0b1f874c5b8307ae2b858bc40f9f02482
refs/heads/master: 07feee8f812f7327a46186f7604df312c8c81962
5 changes: 5 additions & 0 deletions trunk/include/net/netlabel.h
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ int netlbl_conn_setattr(struct sock *sk,
const struct netlbl_lsm_secattr *secattr);
int netlbl_req_setattr(struct request_sock *req,
const struct netlbl_lsm_secattr *secattr);
void netlbl_req_delattr(struct request_sock *req);
int netlbl_skbuff_setattr(struct sk_buff *skb,
u16 family,
const struct netlbl_lsm_secattr *secattr);
Expand Down Expand Up @@ -547,6 +548,10 @@ static inline int netlbl_req_setattr(struct request_sock *req,
{
return -ENOSYS;
}
static inline void netlbl_req_delattr(struct request_sock *req)
{
return;
}
static inline int netlbl_skbuff_setattr(struct sk_buff *skb,
u16 family,
const struct netlbl_lsm_secattr *secattr)
Expand Down
13 changes: 13 additions & 0 deletions trunk/net/netlabel/netlabel_kapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -860,6 +860,19 @@ int netlbl_req_setattr(struct request_sock *req,
return ret_val;
}

/**
* netlbl_req_delattr - Delete all the NetLabel labels on a socket
* @req: the socket
*
* Description:
* Remove all the NetLabel labeling from @req.
*
*/
void netlbl_req_delattr(struct request_sock *req)
{
cipso_v4_req_delattr(req);
}

/**
* netlbl_skbuff_setattr - Label a packet using the correct protocol
* @skb: the packet
Expand Down
1 change: 0 additions & 1 deletion trunk/security/smack/smack.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ struct superblock_smack {
struct socket_smack {
char *smk_out; /* outbound label */
char *smk_in; /* inbound label */
int smk_labeled; /* label scheme */
char smk_packet[SMK_LABELLEN]; /* TCP peer label */
};

Expand Down
Loading

0 comments on commit fb894b1

Please sign in to comment.