smack-team / smack

Smack userspace
GNU Lesser General Public License v2.1
41 stars 33 forks source link

Add smack_set_onlycap, smack_set_onlycap_from_file APIs #125

Closed TomaszSwierczek closed 8 years ago

TomaszSwierczek commented 8 years ago

smack_set_onlycap applies the list of supplied labels to kernel. Its usage in smack_load_policy() searches for the text file with list of labels in /etc/smack/onlycap (each label in separate line). smack_set_onlycap_from_file usage was also added to smack_load_policy() function.

Signed-off-by: Tomasz Swierczek t.swierczek@samsung.com

rafal-krypa commented 8 years ago

Please squash the three commits into one. There is no need for a chain of commits like "implement foo", "fix foo implementation", "another fix for foo" in the pull request. For patches that aren't yet merged to the repository, preferred procedure is to amend the patches, not to put fixing patches on top of them.

TomaszSwierczek commented 8 years ago

Squashed to one commit.