3 initial_label=`cat /proc/self/attr/current 2>/dev/null`
4 modified_label="test_label"
6 echo "$modified_label" >/proc/self/attr/current 2>/dev/null
8 new_label=`cat /proc/self/attr/current 2>/dev/null`
10 if [ "$new_label" != "$modified_label" ]; then
11 # restore proper label
12 echo $initial_label >/proc/self/attr/current
13 echo "Privileged process could not change its label"
17 echo "$initial_label" >/proc/self/attr/current 2>/dev/null