PERFORCE change 169264 for review

Robert Watson rwatson at FreeBSD.org
Tue Oct 6 12:57:07 UTC 2009


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

Change 169264 by rwatson at rwatson_cinnamon on 2009/10/06 12:56:28

	OpenBSM bits for ENOTCAPABLE on FreeBSD.

Affected files ...

.. //depot/projects/trustedbsd/openbsm/libbsm/bsm_errno.c#20 edit
.. //depot/projects/trustedbsd/openbsm/sys/bsm/audit_errno.h#6 edit

Differences ...

==== //depot/projects/trustedbsd/openbsm/libbsm/bsm_errno.c#20 (text+ko) ====

@@ -26,7 +26,7 @@
  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  * POSSIBILITY OF SUCH DAMAGE. 
  *
- * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_errno.c#19 $
+ * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_errno.c#20 $
  */
 
 #include <sys/types.h>
@@ -684,6 +684,13 @@
 	ERRNO_NO_LOCAL_MAPPING,
 #endif
 	ES("Key was rejected by service") },
+	{ BSM_ERRNO_ENOTCAPABLE,
+#ifdef ENOTCAPABLE
+	ENOTCAPABLE,
+#else
+	ERRNO_NO_LOCAL_MAPPING,
+#endif
+	ES("Capabilities insufficient") },
 };
 static const int bsm_errnos_count = sizeof(bsm_errnos) / sizeof(bsm_errnos[0]);
 

==== //depot/projects/trustedbsd/openbsm/sys/bsm/audit_errno.h#6 (text+ko) ====

@@ -26,7 +26,7 @@
  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  * POSSIBILITY OF SUCH DAMAGE. 
  *
- * $P4: //depot/projects/trustedbsd/openbsm/sys/bsm/audit_errno.h#5 $
+ * $P4: //depot/projects/trustedbsd/openbsm/sys/bsm/audit_errno.h#6 $
  */
 
 #ifndef _BSM_AUDIT_ERRNO_H_
@@ -204,6 +204,7 @@
 #define	BSM_ERRNO_EKEYEXPIRED		220	/* Linux-specific. */
 #define	BSM_ERRNO_EKEYREVOKED		221	/* Linux-specific. */
 #define	BSM_ERRNO_EKEYREJECTED		222	/* Linux-specific. */
+#define	BSM_ERRNO_ENOTCAPABLE		223	/* FreeBSD-specific. */
 
 /*
  * In the event that OpenBSM doesn't have a file representation of a local


More information about the p4-projects mailing list