1. 01 12月, 2010 4 次提交
    • 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 3 次提交