From: "Sven Vermeulen" <swift@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/hardened-refpolicy:next commit in: policy/modules/admin/
Date: Sun, 12 Oct 2014 08:44:35 +0000 (UTC) [thread overview]
Message-ID: <1413103253.733eef5b0f9b79c0b8dd2b5a9ea4020cc0c765f7.swift@gentoo> (raw)
commit: 733eef5b0f9b79c0b8dd2b5a9ea4020cc0c765f7
Author: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
AuthorDate: Sun Oct 12 08:40:53 2014 +0000
Commit: Sven Vermeulen <swift <AT> gentoo <DOT> org>
CommitDate: Sun Oct 12 08:40:53 2014 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=733eef5b
Allow sudo to create /var/run/sudo if non-existing
When sudo is invoked and the /var/run/sudo directory (in which a ts/
subdirectory would be created and managed by sudo) is not available yet,
sudo will try to create it.
Grant it this privilege and have this directory be labeled as
pam_var_run_t.
Without this, we get:
sudo: unable to mkdir /var/run/sudo: Permission denied
---
policy/modules/admin/sudo.if | 3 +++
1 file changed, 3 insertions(+)
diff --git a/policy/modules/admin/sudo.if b/policy/modules/admin/sudo.if
index d9114b3..b282877 100644
--- a/policy/modules/admin/sudo.if
+++ b/policy/modules/admin/sudo.if
@@ -160,6 +160,9 @@ template(`sudo_role_template',`
fprintd_dbus_chat($1_sudo_t)
')
+ ifdef(`distro_gentoo',`
+ auth_pid_filetrans_pam_var_run($1_sudo_t, dir, "sudo")
+ ')
')
########################################
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/admin/
Date: Sun, 12 Oct 2014 09:13:41 +0000 (UTC) [thread overview]
Message-ID: <1413103253.733eef5b0f9b79c0b8dd2b5a9ea4020cc0c765f7.swift@gentoo> (raw)
Message-ID: <20141012091341.g03feIvGMY1bkPp6VDp-HUnbaxd20ZefUntmEQxacC8@z> (raw)
commit: 733eef5b0f9b79c0b8dd2b5a9ea4020cc0c765f7
Author: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
AuthorDate: Sun Oct 12 08:40:53 2014 +0000
Commit: Sven Vermeulen <swift <AT> gentoo <DOT> org>
CommitDate: Sun Oct 12 08:40:53 2014 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=733eef5b
Allow sudo to create /var/run/sudo if non-existing
When sudo is invoked and the /var/run/sudo directory (in which a ts/
subdirectory would be created and managed by sudo) is not available yet,
sudo will try to create it.
Grant it this privilege and have this directory be labeled as
pam_var_run_t.
Without this, we get:
sudo: unable to mkdir /var/run/sudo: Permission denied
---
policy/modules/admin/sudo.if | 3 +++
1 file changed, 3 insertions(+)
diff --git a/policy/modules/admin/sudo.if b/policy/modules/admin/sudo.if
index d9114b3..b282877 100644
--- a/policy/modules/admin/sudo.if
+++ b/policy/modules/admin/sudo.if
@@ -160,6 +160,9 @@ template(`sudo_role_template',`
fprintd_dbus_chat($1_sudo_t)
')
+ ifdef(`distro_gentoo',`
+ auth_pid_filetrans_pam_var_run($1_sudo_t, dir, "sudo")
+ ')
')
########################################
next reply other threads:[~2014-10-12 8:44 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-12 8:44 Sven Vermeulen [this message]
2014-10-12 9:13 ` [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/admin/ Sven Vermeulen
-- strict thread matches above, loose matches on Subject: below --
2014-10-12 8:59 [gentoo-commits] proj/hardened-refpolicy:next " Sven Vermeulen
2014-11-27 22:23 [gentoo-commits] proj/hardened-refpolicy:master " Sven Vermeulen
2014-11-28 10:04 ` [gentoo-commits] proj/hardened-refpolicy:next " Sven Vermeulen
2014-11-28 10:04 Sven Vermeulen
2015-01-29 6:51 Jason Zaman
2015-06-07 9:31 Sven Vermeulen
2015-06-09 10:45 Sven Vermeulen
2015-08-02 19:06 Jason Zaman
2017-01-01 16:36 [gentoo-commits] proj/hardened-refpolicy:master " Jason Zaman
2017-01-01 16:37 ` [gentoo-commits] proj/hardened-refpolicy:next " Jason Zaman
2017-02-17 8:44 [gentoo-commits] proj/hardened-refpolicy:master " Jason Zaman
2017-02-17 8:50 ` [gentoo-commits] proj/hardened-refpolicy:next " Jason Zaman
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=1413103253.733eef5b0f9b79c0b8dd2b5a9ea4020cc0c765f7.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: link
Be 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