#!/bin/sh
if [ $# -lt 1 ] ;then
	echo save_s_context file command
	echo Save the security context in file and execute a command
else
	CTX=`cat /proc/self/status | grep s_context | sed s/s_context://`
	CTX=`eval expr $CTX + 0`
	echo S_CONTEXT=$CTX >$1
	shift
	exec $*
fi


