OpenCloudOS-Kernel/security/smack
Passion,Zhao 0fcfee61d6 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>
2013-06-03 10:56:02 -07:00
..
Kconfig Smack: use select not depends in Kconfig 2012-12-14 10:57:10 -08:00
Makefile Smack: Simplified Mandatory Access Control Kernel 2008-02-05 09:44:20 -08:00
smack.h Smack: Add smkfstransmute mount option 2013-05-28 10:08:44 -07:00
smack_access.c Smack: Fix possible NULL pointer dereference at smk_netlbl_mls() 2013-05-28 10:15:35 -07:00
smack_lsm.c Smack: Add smkfstransmute mount option 2013-05-28 10:08:44 -07:00
smackfs.c Smack: Fix the bug smackcipso can't set CIPSO correctly 2013-06-03 10:56:02 -07:00