- chsmack_attr tries to read all capabilities
though some capabilities aren't SMACK attribute
- security.capability is raw binary having NULL byte,
so attr prints warning message
- warning: command substitution: ignored null byte in input
- It doesn't cause the problem on making delta,
but chsmack_attr will read only SMACK capability
to remove meaningless message
Change-Id: Ibb06ad73cfe4d04c26d84e6669f5bdfc1559ec43
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
CHSMACK_STR="${TARGET}"
for attrname in ${ATTRS}
do
- value=`attr -Sq -g ${attrname} "${TARGET}"`
-
case "${attrname}" in
SMACK64)
chsmack_attrname="access"
;;
esac
+ value=`attr -Sq -g ${attrname} "${TARGET}"`
CHSMACK_STR="${CHSMACK_STR} ${chsmack_attrname}=\"${value}\""
done