Merge branch 'next-queue' into next
authorJames Morris <jmorris@namei.org>
Tue, 9 Mar 2010 01:46:47 +0000 (12:46 +1100)
committerJames Morris <jmorris@namei.org>
Tue, 9 Mar 2010 01:46:47 +0000 (12:46 +1100)
1  2 
security/security.c
security/selinux/hooks.c
security/selinux/ss/policydb.c
security/tomoyo/common.c

Simple merge
Simple merge
Simple merge
@@@ -1367,23 -1424,23 +1367,21 @@@ static bool tomoyo_print_path_acl(struc
  {
        int pos;
        u8 bit;
-       const char *atmark = "";
        const char *filename;
 -      const u16 perm = ptr->perm;
 +      const u32 perm = ptr->perm | (((u32) ptr->perm_high) << 16);
  
        filename = ptr->filename->name;
 -      for (bit = head->read_bit; bit < TOMOYO_MAX_SINGLE_PATH_OPERATION;
 -           bit++) {
 +      for (bit = head->read_bit; bit < TOMOYO_MAX_PATH_OPERATION; bit++) {
                const char *msg;
                if (!(perm & (1 << bit)))
                        continue;
                /* Print "read/write" instead of "read" and "write". */
 -              if ((bit == TOMOYO_TYPE_READ_ACL ||
 -                   bit == TOMOYO_TYPE_WRITE_ACL)
 -                  && (perm & (1 << TOMOYO_TYPE_READ_WRITE_ACL)))
 +              if ((bit == TOMOYO_TYPE_READ || bit == TOMOYO_TYPE_WRITE)
 +                  && (perm & (1 << TOMOYO_TYPE_READ_WRITE)))
                        continue;
 -              msg = tomoyo_sp2keyword(bit);
 +              msg = tomoyo_path2keyword(bit);
                pos = head->read_avail;
-               if (!tomoyo_io_printf(head, "allow_%s %s%s\n", msg,
-                                     atmark, filename))
+               if (!tomoyo_io_printf(head, "allow_%s %s\n", msg, filename))
                        goto out;
        }
        head->read_bit = 0;
   *
   * Returns true on success, false otherwise.
   */
 -static bool tomoyo_print_double_path_acl(struct tomoyo_io_buffer *head,
 -                                       struct tomoyo_double_path_acl_record *
 -                                       ptr)
 +static bool tomoyo_print_path2_acl(struct tomoyo_io_buffer *head,
 +                                 struct tomoyo_path2_acl *ptr)
  {
        int pos;
-       const char *atmark1 = "";
-       const char *atmark2 = "";
        const char *filename1;
        const char *filename2;
        const u8 perm = ptr->perm;
                const char *msg;
                if (!(perm & (1 << bit)))
                        continue;
 -              msg = tomoyo_dp2keyword(bit);
 +              msg = tomoyo_path22keyword(bit);
                pos = head->read_avail;
-               if (!tomoyo_io_printf(head, "allow_%s %s%s %s%s\n", msg,
-                                     atmark1, filename1, atmark2, filename2))
+               if (!tomoyo_io_printf(head, "allow_%s %s %s\n", msg,
+                                     filename1, filename2))
                        goto out;
        }
        head->read_bit = 0;