]> git.pld-linux.org Git - packages/apparmor-parser.git/commitdiff
- no IFS at all
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 18 Dec 2006 13:53:02 +0000 (13:53 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apparmor-parser-pld.patch -> 1.3

apparmor-parser-pld.patch

index 4c1efdbc777d9e4cd8213113d2570dbb80f870ee..711d7a02636b9741c801ff9c97089addbe1d11b8 100644 (file)
@@ -1,6 +1,6 @@
 diff -urN apparmor-parser-2.0.org/rc.apparmor.functions apparmor-parser-2.0/rc.apparmor.functions
 --- apparmor-parser-2.0.org/rc.apparmor.functions      2006-10-12 18:56:46.000000000 +0200
-+++ apparmor-parser-2.0/rc.apparmor.functions  2006-12-12 17:38:38.000000000 +0100
++++ apparmor-parser-2.0/rc.apparmor.functions  2006-12-18 14:47:44.113527250 +0100
 @@ -53,7 +53,7 @@
  
  if [ -f "${APPARMOR_CONF}" ] ; then
@@ -162,7 +162,19 @@ diff -urN apparmor-parser-2.0.org/rc.apparmor.functions apparmor-parser-2.0/rc.a
        if [ ! -w "$SFS_MOUNTPOINT/.load" ] ; then
                sd_log_failure_msg "Loading AppArmor profiles - failed, Do you have the correct privileges?"
                return 4
-@@ -459,7 +461,7 @@
+@@ -449,17 +451,15 @@
+       profiles_names_list ${PNAMES_LIST}
+       MODULE_PLIST=$(mktemp ${APPARMOR_TMPDIR}/tmp.XXXXXXXX)
+       sed  -e "s/ (\(enforce\|complain\))$//" "$SFS_MOUNTPOINT/profiles" | sort >"$MODULE_PLIST"
+-      #profiles=$(cat $PNAMES_LIST | sort | comm -2 -3 "$MODULE_PLIST" -)
+-      #for profile in $profiles ; do
+-      IFS=$'\n' && for profile in $(cat $PNAMES_LIST | sort | comm -2 -3 "$MODULE_PLIST" -) ; do
+-              echo "\"$profile\" {}" | $PARSER -R >/dev/null
++      cat "$PNAMES_LIST" | sort | comm -2 -3 "$MODULE_PLIST" - | while read profile; do
++              echo "\"$profile\" {}" | $PARSER -R > /dev/null
+       done
+       rm "$MODULE_PLIST"
+       rm "$PNAMES_LIST"
        return 0
  }
  
@@ -171,7 +183,7 @@ diff -urN apparmor-parser-2.0.org/rc.apparmor.functions apparmor-parser-2.0/rc.a
        if ! grep -qE "^(subdomain|apparmor)[[:space:]]" /proc/modules ; then
                subdomain_start
                rc=$?
-@@ -479,7 +481,7 @@
+@@ -479,7 +479,7 @@
        return $rc
  }
  
@@ -180,7 +192,7 @@ diff -urN apparmor-parser-2.0.org/rc.apparmor.functions apparmor-parser-2.0/rc.a
        if ! grep -qE "^(subdomain|apparmor)[[:space:]]" /proc/modules ; then
                return 1
        fi
-@@ -493,7 +495,7 @@
+@@ -493,7 +493,7 @@
        return $rc
  }
  
@@ -189,7 +201,7 @@ diff -urN apparmor-parser-2.0.org/rc.apparmor.functions apparmor-parser-2.0/rc.a
        subdomain_kill
        load_module "subdomain_debug=1"
        mount_subdomainfs
-@@ -501,7 +503,7 @@
+@@ -501,7 +501,7 @@
        parse_profiles load
  }
  
@@ -198,7 +210,7 @@ diff -urN apparmor-parser-2.0.org/rc.apparmor.functions apparmor-parser-2.0/rc.a
        if [ "${SUBDOMAIN_ENABLE_OWLSM}" = "yes" -a -f ${SFS_MOUNTPOINT}/control/owlsm ] ; then
                # Sigh, the "sh -c" is necessary for the SuSE sd_action
                # and it can't be abstracted out as a seperate function, as
-@@ -513,7 +515,7 @@
+@@ -513,7 +513,7 @@
        fi
  }
  
This page took 0.087913 seconds and 4 git commands to generate.