All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libselinux
@ 2005-11-03 19:33 Jonathan Kim
  2005-11-03 20:10 ` Stephen Smalley
  0 siblings, 1 reply; 12+ messages in thread
From: Jonathan Kim @ 2005-11-03 19:33 UTC (permalink / raw)
  To: SELinux; +Cc: Chad Hanson

[-- Attachment #1: Type: text/plain, Size: 414 bytes --]

This patch is for handling correctly when label portion is removed from
seusers file. 
Will refer to *.users file instead of asking role:type:level to user as
expected.

 <<libselinux_seusers.patch>> 

-----------------------------------
Jonghoon Jonathan
Secure Systems Engineer

Trusted Computer Solutions
121 W Goose Alley
Urbana, IL  61801

http://www.TrustedCS.com

V:  217.384.0028  ext.16
F:  217.384.0288


[-- Attachment #2: libselinux_seusers.patch --]
[-- Type: application/octet-stream, Size: 464 bytes --]

diff -Nur libselinux-1.27.17.orig/src/seusers.c libselinux-1.27.17/src/seusers.c
--- libselinux-1.27.17.orig/src/seusers.c	2005-10-27 17:50:31.000000000 +0000
+++ libselinux-1.27.17/src/seusers.c	2005-11-02 17:56:32.574237594 +0000
@@ -63,9 +63,11 @@
 		end++;
 	*end = 0;
 
-	level = strdup(start);
-	if (!level)
-		goto err;
+	if (*start && !isspace(*start)) {
+		level = strdup(start);
+		if (!level)
+			goto err;
+	}
 
 out:
 	free(newbuf);

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2005-11-04 14:51 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-03 19:33 [PATCH] libselinux Jonathan Kim
2005-11-03 20:10 ` Stephen Smalley
2005-11-03 20:33   ` Stephen Smalley
2005-11-03 20:47     ` Stephen Smalley
2005-11-03 21:29       ` [ SEMANAGE] Resync seuser parser Ivan Gyurdiev
2005-11-04  7:59         ` Ivan Gyurdiev
2005-11-04  8:15           ` Ivan Gyurdiev
2005-11-04 13:47             ` Stephen Smalley
2005-11-04 14:35               ` Ivan Gyurdiev
2005-11-04 14:51                 ` Ivan Gyurdiev
2005-11-04 14:38                   ` Stephen Smalley
2005-11-04 13:23           ` Stephen Smalley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.