summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorPassion,Zhao <passion.zhao@intel.com>2013-06-03 03:42:24 (GMT)
committerCasey Schaufler <casey@schaufler-ca.com>2013-06-03 17:56:02 (GMT)
commit0fcfee61d63b82c1eefb5b1a914240480f17d63f (patch)
treea61ecc9d44a9ff5501e833253011d443d2a2d011 /samples
parent8cd77a0bd4b4a7d02c2a6926a69585d8088ee721 (diff)
downloadlinux-0fcfee61d63b82c1eefb5b1a914240480f17d63f.tar.xz
Smack: Fix the bug smackcipso can't set CIPSO correctly
Bug report: https://tizendev.org/bugs/browse/TDIS-3891 The reason is userspace libsmack only use "smackfs/cipso2" long-label interface, but the code's logical is still for orginal fixed length label. Now update smack_cipso_apply() to support flexible label (<=256 including tailing '\0') There is also a bug in kernel/security/smack/smackfs.c: When smk_set_cipso() parsing the CIPSO setting from userspace, the offset of CIPSO level should be "strlen(label)+1" instead of "strlen(label)" Signed-off-by: Passion,Zhao <passion.zhao@intel.com>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions