~apparmor-dev/apparmor/experimental

« back to all changes in this revision

Viewing changes to kernel-patches/for-mainline/profile-namespaces.diff

  • Committer: jrjohansen
  • Date: 2007-07-19 20:17:24 UTC
  • Revision ID: svn-v4:40609528-9d10-0410-9bd8-e926d5471da9:branches/experimental:790
- change append patch so that file create to require 'w' perm for now
- fix lock mediation so it check lock perm even if the files profile matches
- remove uneeded hooks from network mediation and ensure unix domain
  and netlink sockets are never mediated

Show diffs side-by-side

added added

removed removed

Lines of Context:
1040
1040
                        return -ENOMEM;
1041
1041
 
1042
1042
+               if (ns_len) {
1043
 
+                       memcpy(str, profile->ns->name, ns_len);
1044
 
+                       str += ns_len;
 
1043
+                       memcpy(str, profile->ns->name, ns_len - 1);
 
1044
+                       str += ns_len - 1;
1045
1045
+                       *str++ = ':';
1046
1046
+               }
1047
1047
                memcpy(str, profile->name, name_len);