PERFORCE change 70771 for review

Andrew Reisse areisse at FreeBSD.org
Thu Feb 10 16:45:30 GMT 2005


http://perforce.freebsd.org/chv.cgi?CH=70771

Change 70771 by areisse at areisse_tislabs on 2005/02/10 16:45:03

	Cleanups from conversion to 32-bit access_vector_t.

Affected files ...

.. //depot/projects/trustedbsd/sebsd/contrib/sebsd/libselinux/include/selinux/selinux.h#3 edit
.. //depot/projects/trustedbsd/sebsd/lib/libsebsd/security_compute_av.c#4 edit
.. //depot/projects/trustedbsd/sebsd/sbin/sebsd_setfiles/setfiles.c#2 edit

Differences ...

==== //depot/projects/trustedbsd/sebsd/contrib/sebsd/libselinux/include/selinux/selinux.h#3 (text+ko) ====

@@ -5,7 +5,7 @@
 
 #define _LINUX_FLASK_TYPES_H_
 typedef unsigned short security_class_t;
-typedef unsigned long long access_vector_t;
+typedef unsigned int access_vector_t;
 typedef char *security_context_t;
 
 /* Return 1 if we are running on a SELinux kernel, or 0 if not or -1 if we get an error. */

==== //depot/projects/trustedbsd/sebsd/lib/libsebsd/security_compute_av.c#4 (text+ko) ====

@@ -45,7 +45,7 @@
 #include "sebsd.h"
 
 typedef char __assert_class_size[sizeof(security_class_t) == 2 ? 1 : -1];
-typedef char __assert_av_size[sizeof(access_vector_t) == 8 ? 1 : -1];
+typedef char __assert_av_size[sizeof(access_vector_t) == 4 ? 1 : -1];
 
 /*
  * Return the decisions SEBSD makes given a specific access vector.

==== //depot/projects/trustedbsd/sebsd/sbin/sebsd_setfiles/setfiles.c#2 (text+ko) ====

@@ -49,7 +49,7 @@
 #include <err.h>
 
 #include <flask.h>
-#include <sebsd.h>
+#include <selinux/selinux.h>
 
 static char errbuf[255 + 1];    /* Error message buffer */
 static int verbose = 0;
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list