smack-team / smack

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

libsmack: add new function for retrieving Smack label of any process #127

Closed rafal-krypa closed 8 years ago

rafal-krypa commented 8 years ago

Until now libsmack provided only function for returning Smack label of the calling process. But it is often needed to get label of another process. User programs needed to implement this by themselves by accessing appropriate procfs interface.

Add new function smack_new_label_from_process that takes PID of the process and returns its label.