1. 01 12月, 2010 5 次提交
    • E
      SELinux: do not set automatic i_ino in selinuxfs · c9e86a9b
      Eric Paris 提交于
      selinuxfs carefully uses i_ino to figure out what the inode refers to.  The
      VFS used to generically set this value and we would reset it to something
      useable.  After 85fe4025 each filesystem sets this value to a default
      if needed.  Since selinuxfs doesn't use the default value and it can only
      lead to problems (I'd rather have 2 inodes with i_ino == 0 than one
      pointing to the wrong data) lets just stop setting a default.
      Signed-off-by: NEric Paris <eparis@redhat.com>
      Acked-by: NJames Morris <jmorris@namei.org>
      c9e86a9b
    • E
      selinux: rework security_netlbl_secattr_to_sid · 7ae9f23c
      Eric Paris 提交于
      security_netlbl_secattr_to_sid is difficult to follow, especially the
      return codes.  Try to make the function obvious.
      Signed-off-by: NEric Paris <eparis@redhat.com>
      7ae9f23c
    • E
      SELinux: standardize return code handling in selinuxfs.c · 4b02b524
      Eric Paris 提交于
      selinuxfs.c has lots of different standards on how to handle return paths on
      error.  For the most part transition to
      
      	rc=errno
      	if (failure)
      		goto out;
      [...]
      out:
      	cleanup()
      	return rc;
      
      Instead of doing cleanup mid function, or having multiple returns or other
      options.  This doesn't do that for every function, but most of the complex
      functions which have cleanup routines on error.
      Signed-off-by: NEric Paris <eparis@redhat.com>
      4b02b524
    • E
      SELinux: standardize return code handling in selinuxfs.c · b77a493b
      Eric Paris 提交于
      selinuxfs.c has lots of different standards on how to handle return paths on
      error.  For the most part transition to
      
      	rc=errno
      	if (failure)
      		goto out;
      [...]
      out:
      	cleanup()
      	return rc;
      
      Instead of doing cleanup mid function, or having multiple returns or other
      options.  This doesn't do that for every function, but most of the complex
      functions which have cleanup routines on error.
      Signed-off-by: NEric Paris <eparis@redhat.com>
      b77a493b
    • E
      SELinux: standardize return code handling in policydb.c · 9398c7f7
      Eric Paris 提交于
      policydb.c has lots of different standards on how to handle return paths on
      error.  For the most part transition to
      
      	rc=errno
      	if (failure)
      		goto out;
      [...]
      out:
      	cleanup()
      	return rc;
      
      Instead of doing cleanup mid function, or having multiple returns or other
      options.  This doesn't do that for every function, but most of the complex
      functions which have cleanup routines on error.
      Signed-off-by: NEric Paris <eparis@redhat.com>
      9398c7f7
  2. 30 11月, 2010 14 次提交
  3. 29 11月, 2010 19 次提交
  4. 28 11月, 2010 2 次提交