projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfaebe9
)
smack: Fix missing calls to netlbl_skbuff_err()
author
Paul Moore
<paul.moore@hp.com>
Fri, 10 Oct 2008 14:16:31 +0000
(10:16 -0400)
committer
Paul Moore
<paul.moore@hp.com>
Fri, 10 Oct 2008 14:16:31 +0000
(10:16 -0400)
Smack needs to call netlbl_skbuff_err() to let NetLabel do the necessary
protocol specific error handling.
Signed-off-by: Paul Moore <paul.moore@hp.com>
Acked-by: Casey Schaufler <casey@schaufler-ca.com>
security/smack/smack_lsm.c
patch
|
blob
|
blame
|
history
diff --git
a/security/smack/smack_lsm.c
b/security/smack/smack_lsm.c
index 87d75417ea937e7756678fd381c3cb96c9d1c7a5..6e2dc0bab70d837a57ac78a452603178761fbbb3 100644
(file)
--- a/
security/smack/smack_lsm.c
+++ b/
security/smack/smack_lsm.c
@@
-2179,7
+2179,10
@@
static int smack_socket_sock_rcv_skb(struct sock *sk, struct sk_buff *skb)
* This is the simplist possible security model
* for networking.
*/
- return smk_access(smack, ssp->smk_in, MAY_WRITE);
+ rc = smk_access(smack, ssp->smk_in, MAY_WRITE);
+ if (rc != 0)
+ netlbl_skbuff_err(skb, rc, 0);
+ return rc;
}
/**