Commit 8a23c9e
committed
selinux,smack: properly reference the LSM blob in security_watch_key()
Unfortunately when we migrated the lifecycle management of the key LSM
blob to the LSM framework we forgot to convert the security_watch_key()
callbacks for SELinux and Smack. This patch corrects this by making use
of the selinux_key() and smack_key() helper functions respectively.
This patch also removes some input checking in the Smack callback as it
is no longer needed.
Fixes: 5f8d28f ("lsm: infrastructure management of the key security blob")
Reported-by: [email protected]
Tested-by: [email protected]
Reviewed-by: Casey Schaufler <[email protected]>
Signed-off-by: Paul Moore <[email protected]>1 parent ea7e2d5 commit 8a23c9e
2 files changed
+4
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6720 | 6720 | | |
6721 | 6721 | | |
6722 | 6722 | | |
6723 | | - | |
| 6723 | + | |
6724 | 6724 | | |
6725 | 6725 | | |
6726 | 6726 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4629 | 4629 | | |
4630 | 4630 | | |
4631 | 4631 | | |
| 4632 | + | |
4632 | 4633 | | |
4633 | 4634 | | |
4634 | | - | |
4635 | | - | |
4636 | | - | |
4637 | | - | |
4638 | | - | |
4639 | | - | |
4640 | | - | |
4641 | | - | |
4642 | 4635 | | |
4643 | 4636 | | |
4644 | 4637 | | |
| |||
4653 | 4646 | | |
4654 | 4647 | | |
4655 | 4648 | | |
4656 | | - | |
4657 | | - | |
| 4649 | + | |
| 4650 | + | |
4658 | 4651 | | |
4659 | 4652 | | |
4660 | 4653 | | |
| |||
0 commit comments