From: "Sven Vermeulen" <swift@gentoo.org> To: gentoo-commits@lists.gentoo.org Subject: [gentoo-commits] proj/hardened-refpolicy:testing commit in: policy/modules/kernel/ Date: Wed, 6 Aug 2014 18:13:13 +0000 (UTC) [thread overview] Message-ID: <1407348517.c59fbdcd0347acb36cb72b2da4e60f553121113b.swift@gentoo> (raw) commit: c59fbdcd0347acb36cb72b2da4e60f553121113b Author: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be> AuthorDate: Wed Aug 6 09:03:57 2014 +0000 Commit: Sven Vermeulen <swift <AT> gentoo <DOT> org> CommitDate: Wed Aug 6 18:08:37 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=c59fbdcd Introduce files_manage_non_security_file_type interface This interface, similar to files_manage_non_auth_files, allows the domain to manage and work on non-security related file types. No type attributes are set so this can be used in a tunable_policy statement if necessary. Naming based on the attribute used (non_security_file_type). --- policy/modules/kernel/files.if | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/policy/modules/kernel/files.if b/policy/modules/kernel/files.if index ca278d5..5d53aa4 100644 --- a/policy/modules/kernel/files.if +++ b/policy/modules/kernel/files.if @@ -6728,3 +6728,27 @@ interface(`files_read_etc_runtime',` read_files_pattern($1, { etc_t etc_runtime_t }, etc_runtime_t) read_lnk_files_pattern($1, { etc_t etc_runtime_t }, etc_runtime_t) ') + +######################################## +## <summary> +## Manage non-security related resources. +## </summary> +## <param name="domain"> +## <summary> +## Domain allowed access. +## </summary> +## </param> +## <rolecap/> +# +interface(`files_manage_non_security_file_type',` + gen_require(` + attribute non_security_file_type; + ') + + manage_dirs_pattern($1, non_security_file_type, non_security_file_type) + manage_files_pattern($1, non_security_file_type, non_security_file_type) + manage_lnk_files_pattern($1, non_security_file_type, non_security_file_type) + manage_fifo_files_pattern($1, non_security_file_type, non_security_file_type) + manage_sock_files_pattern($1, non_security_file_type, non_security_file_type) +') +
WARNING: multiple messages have this Message-ID (diff)
From: "Sven Vermeulen" <swift@gentoo.org> To: gentoo-commits@lists.gentoo.org Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/kernel/ Date: Thu, 7 Aug 2014 08:06:04 +0000 (UTC) [thread overview] Message-ID: <1407348517.c59fbdcd0347acb36cb72b2da4e60f553121113b.swift@gentoo> (raw) Message-ID: <20140807080604.5zuBOA-CY27_irgt0SlKPGp9OL0-oic-s-FFn2JoqgE@z> (raw) commit: c59fbdcd0347acb36cb72b2da4e60f553121113b Author: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be> AuthorDate: Wed Aug 6 09:03:57 2014 +0000 Commit: Sven Vermeulen <swift <AT> gentoo <DOT> org> CommitDate: Wed Aug 6 18:08:37 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=c59fbdcd Introduce files_manage_non_security_file_type interface This interface, similar to files_manage_non_auth_files, allows the domain to manage and work on non-security related file types. No type attributes are set so this can be used in a tunable_policy statement if necessary. Naming based on the attribute used (non_security_file_type). --- policy/modules/kernel/files.if | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/policy/modules/kernel/files.if b/policy/modules/kernel/files.if index ca278d5..5d53aa4 100644 --- a/policy/modules/kernel/files.if +++ b/policy/modules/kernel/files.if @@ -6728,3 +6728,27 @@ interface(`files_read_etc_runtime',` read_files_pattern($1, { etc_t etc_runtime_t }, etc_runtime_t) read_lnk_files_pattern($1, { etc_t etc_runtime_t }, etc_runtime_t) ') + +######################################## +## <summary> +## Manage non-security related resources. +## </summary> +## <param name="domain"> +## <summary> +## Domain allowed access. +## </summary> +## </param> +## <rolecap/> +# +interface(`files_manage_non_security_file_type',` + gen_require(` + attribute non_security_file_type; + ') + + manage_dirs_pattern($1, non_security_file_type, non_security_file_type) + manage_files_pattern($1, non_security_file_type, non_security_file_type) + manage_lnk_files_pattern($1, non_security_file_type, non_security_file_type) + manage_fifo_files_pattern($1, non_security_file_type, non_security_file_type) + manage_sock_files_pattern($1, non_security_file_type, non_security_file_type) +') +
next reply other threads:[~2014-08-06 18:13 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-08-06 18:13 Sven Vermeulen [this message] 2014-08-07 8:06 ` [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/kernel/ Sven Vermeulen -- strict thread matches above, loose matches on Subject: below -- 2014-08-08 8:50 [gentoo-commits] proj/hardened-refpolicy:testing " Sven Vermeulen 2014-08-08 8:50 Sven Vermeulen 2014-08-08 8:48 [gentoo-commits] proj/hardened-refpolicy:master " Sven Vermeulen 2014-08-08 8:50 ` [gentoo-commits] proj/hardened-refpolicy:testing " Sven Vermeulen 2014-08-07 12:41 Sven Vermeulen 2014-08-07 12:41 Sven Vermeulen 2014-08-07 12:30 Sven Vermeulen 2014-08-07 9:41 [gentoo-commits] proj/hardened-refpolicy:master " Sven Vermeulen 2014-08-08 8:50 ` [gentoo-commits] proj/hardened-refpolicy:testing " Sven Vermeulen 2014-08-06 18:13 Sven Vermeulen 2014-08-06 9:06 Sven Vermeulen 2014-08-06 8:59 Sven Vermeulen
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=1407348517.c59fbdcd0347acb36cb72b2da4e60f553121113b.swift@gentoo \ --to=swift@gentoo.org \ --cc=gentoo-commits@lists.gentoo.org \ --cc=gentoo-dev@lists.gentoo.org \ /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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox