diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-07-01 12:00:26 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-07-01 13:36:26 -0700 |
commit | c2f18f972dacb630019cc229263efd2d8aef1428 (patch) | |
tree | 3b735a7c45e0f6d46f620e10534c1929f331a576 /debian/vyatta-cfg-system.postinst.in | |
parent | b5cd87672f770c3b6cc38a5cb19e6d8028c51524 (diff) | |
download | vyatta-cfg-quagga-c2f18f972dacb630019cc229263efd2d8aef1428.tar.gz vyatta-cfg-quagga-c2f18f972dacb630019cc229263efd2d8aef1428.zip |
Touch file before setting capability
Unionfs should copyup the xattr automatically, but it doesn't
so use touch to force a copyup before setting attributes.
Diffstat (limited to 'debian/vyatta-cfg-system.postinst.in')
-rw-r--r-- | debian/vyatta-cfg-system.postinst.in | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in index dee13d4f..3c3c2e40 100644 --- a/debian/vyatta-cfg-system.postinst.in +++ b/debian/vyatta-cfg-system.postinst.in @@ -135,8 +135,11 @@ EOF cp $sysconfdir/vyatta-sysctl.conf /etc/sysctl.d/30-vyatta-router.conf # Set file capabilities - sed -r -e '/^#/d' -e '/^[[:blank:]]*$/d' <$sysconfdir/filecaps \ - | xargs -i sh -c "setcap {}" + sed -r -e '/^#/d' -e '/^[[:blank:]]*$/d' < $sysconfdir/filecaps | \ + while read capability path; do + touch -c $path + setcap $capability $path + done # Install pam_cap config cp $sysconfdir/capability.conf /etc/security/capability.conf |