Deleted Added
full compact
bsm_errno.c (195740) bsm_errno.c (219128)
1/*-
2 * Copyright (c) 2008 Apple Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 16 unchanged lines hidden (view full) ---

25 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
26 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27 * POSSIBILITY OF SUCH DAMAGE.
28 *
29 * P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_errno.c#18
30 */
31
32#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2008 Apple Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 16 unchanged lines hidden (view full) ---

25 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
26 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27 * POSSIBILITY OF SUCH DAMAGE.
28 *
29 * P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_errno.c#18
30 */
31
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: head/sys/security/audit/audit_bsm_errno.c 195740 2009-07-17 14:02:20Z rwatson $");
33__FBSDID("$FreeBSD: head/sys/security/audit/audit_bsm_errno.c 219128 2011-03-01 13:14:28Z rwatson $");
34
35#include <sys/param.h>
36
37#include <security/audit/audit.h>
38
39#include <bsm/audit_errno.h>
40#include <bsm/audit_record.h>
41

--- 639 unchanged lines hidden (view full) ---

681 ES("Key has been revoked") },
682 { BSM_ERRNO_EKEYREJECTED,
683#ifdef EKEREJECTED
684 EKEYREJECTED,
685#else
686 ERRNO_NO_LOCAL_MAPPING,
687#endif
688 ES("Key was rejected by service") },
34
35#include <sys/param.h>
36
37#include <security/audit/audit.h>
38
39#include <bsm/audit_errno.h>
40#include <bsm/audit_record.h>
41

--- 639 unchanged lines hidden (view full) ---

681 ES("Key has been revoked") },
682 { BSM_ERRNO_EKEYREJECTED,
683#ifdef EKEREJECTED
684 EKEYREJECTED,
685#else
686 ERRNO_NO_LOCAL_MAPPING,
687#endif
688 ES("Key was rejected by service") },
689 { BSM_ERRNO_ENOTCAPABLE,
690#ifdef ENOTCAPABLE
691 ENOTCAPABLE,
692#else
693 ERRNO_NO_LOCAL_MAPPING,
694#endif
695 ES("Capabilities insufficient") },
696 { BSM_ERRNO_ECAPMODE,
697#ifdef ECAPMODE
698 ECAPMODE,
699#else
700 ERRNO_NO_LOCAL_MAPPING,
701#endif
702 ES("Not permitted in capability mode") },
689};
690static const int bsm_errnos_count = sizeof(bsm_errnos) / sizeof(bsm_errnos[0]);
691
692static const struct bsm_errno *
693bsm_lookup_errno_local(int local_errno)
694{
695 int i;
696

--- 65 unchanged lines hidden ---
703};
704static const int bsm_errnos_count = sizeof(bsm_errnos) / sizeof(bsm_errnos[0]);
705
706static const struct bsm_errno *
707bsm_lookup_errno_local(int local_errno)
708{
709 int i;
710

--- 65 unchanged lines hidden ---