From: paul.moore@hp.com (Paul Moore) Date: Fri, 28 Aug 2009 17:13:06 -0400 Subject: [refpolicy] [PATCH 1/2] refpol: Add the "tun_socket" object class flask definitions In-Reply-To: <20090828211039.2821.58710.stgit@flek.lan> References: <20090828211039.2821.58710.stgit@flek.lan> Message-ID: <20090828211306.2821.67107.stgit@flek.lan> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com Add the new "tun_socket" class to the flask definitions. The "tun_socket" object class is used by the new TUN driver hooks which allow policy to control access to TUN/TAP devices. Signed-off-by: Paul Moore --- policy/flask/access_vectors | 2 ++ policy/flask/security_classes | 2 ++ 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/policy/flask/access_vectors b/policy/flask/access_vectors index ef4c063..6292db5 100644 --- a/policy/flask/access_vectors +++ b/policy/flask/access_vectors @@ -251,6 +251,8 @@ inherits socket class unix_dgram_socket inherits socket +class tun_socket +inherits socket # # Define the access vector interpretation for process-related objects diff --git a/policy/flask/security_classes b/policy/flask/security_classes index 9e1bf1a..2bd1bf6 100644 --- a/policy/flask/security_classes +++ b/policy/flask/security_classes @@ -119,4 +119,6 @@ class x_application_data # userspace # kernel services that need to override task security, e.g. cachefiles class kernel_service +class tun_socket + # FLASK