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.
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.