From: Guido Trentalancia <guido@trentalancia.net>
To: Stephen Smalley <sds@tycho.nsa.gov>, Paul Moore <paul@paul-moore.com>
Cc: selinux@tycho.nsa.gov
Subject: [PATCH] Update libsepol to support the policy capability for AF_ALG sockets
Date: Tue, 23 Aug 2016 17:21:22 +0200 [thread overview]
Message-ID: <1471965682.30659.22.camel@trentalancia.net> (raw)
In-Reply-To: <082767a3-acab-4d46-6195-06e35251d53e@tycho.nsa.gov>
Update libsepol with the new policy capability needed to classify
sockets in the AF_ALG namespace (Crypto API).
Signed-off-by: Guido Trentalancia <guido@trentalancia.net>
---
include/sepol/policydb/polcaps.h | 1 +
src/polcaps.c | 1 +
2 files changed, 2 insertions(+)
diff -pru libsepol-git-23082016/include/sepol/policydb/polcaps.h libsepol-git-23082016-alg_socket/include/sepol/policydb/polcaps.h
--- libsepol-git-23082016/include/sepol/policydb/polcaps.h 2016-08-23 17:08:58.690837319 +0200
+++ libsepol-git-23082016-alg_socket/include/sepol/policydb/polcaps.h 2016-08-23 17:13:52.794644956 +0200
@@ -11,6 +11,7 @@ enum {
POLICYDB_CAPABILITY_OPENPERM,
POLICYDB_CAPABILITY_REDHAT1, /* reserved for RH testing of ptrace_child */
POLICYDB_CAPABILITY_ALWAYSNETWORK,
+ POLICYDB_CAPABILITY_ALGSOCKET, /* Crypto API socket namespace */
__POLICYDB_CAPABILITY_MAX
};
#define POLICYDB_CAPABILITY_MAX (__POLICYDB_CAPABILITY_MAX - 1)
diff -pru libsepol-git-23082016/src/polcaps.c libsepol-git-23082016-alg_socket/src/polcaps.c
--- libsepol-git-23082016/src/polcaps.c 2016-08-23 17:08:58.696837395 +0200
+++ libsepol-git-23082016-alg_socket/src/polcaps.c 2016-08-23 17:11:49.145026939 +0200
@@ -10,6 +10,7 @@ static const char *polcap_names[] = {
"open_perms", /* POLICYDB_CAPABILITY_OPENPERM */
"redhat1", /* POLICYDB_CAPABILITY_REDHAT1, aka ptrace_child */
"always_check_network", /* POLICYDB_CAPABILITY_ALWAYSNETWORK */
+ "alg_socket", /* POLICYDB_CAPABILITY_ALGSOCKET (Crypto API socket namespace) */
NULL
};
next prev parent reply other threads:[~2016-08-23 15:21 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-20 16:18 [PATCH] Differentiate between Unix Stream Socket and Sequential Packet Socket Guido Trentalancia
2016-08-20 17:17 ` Paul Moore
2016-08-20 17:39 ` Guido Trentalancia
2016-08-20 18:44 ` Paul Moore
2016-08-20 19:09 ` Guido Trentalancia
2016-08-21 3:24 ` Paul Moore
2016-08-21 17:17 ` [PATCH v2] " Guido Trentalancia
2016-08-22 13:02 ` [PATCH v3] Classify AF_ALG sockets (was: Differentiate between Unix Stream Socket and Sequential Packet Socket) Guido Trentalancia
2016-08-22 20:17 ` Paul Moore
2016-08-22 21:07 ` Guido Trentalancia
2016-08-22 21:04 ` [PATCH v4] Classify AF_ALG sockets Guido Trentalancia
2016-08-22 22:36 ` Paul Moore
2016-08-23 13:05 ` Stephen Smalley
2016-08-23 13:35 ` Paul Moore
2016-08-23 14:14 ` [PATCH v5] " Guido Trentalancia
2016-08-23 14:42 ` Stephen Smalley
2016-08-23 15:21 ` Guido Trentalancia [this message]
2016-08-23 22:02 ` Paul Moore
2016-08-23 23:03 ` Guido Trentalancia
2016-08-21 17:31 ` [PATCH] Differentiate between Unix Stream Socket and Sequential Packet Socket Guido Trentalancia
2016-08-21 17:32 ` Guido Trentalancia
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1471965682.30659.22.camel@trentalancia.net \
--to=guido@trentalancia.net \
--cc=paul@paul-moore.com \
--cc=sds@tycho.nsa.gov \
--cc=selinux@tycho.nsa.gov \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.