summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2011-August/007590.html
diff options
context:
space:
mode:
Diffstat (limited to 'zarb-ml/mageia-dev/2011-August/007590.html')
-rw-r--r--zarb-ml/mageia-dev/2011-August/007590.html155
1 files changed, 155 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/2011-August/007590.html b/zarb-ml/mageia-dev/2011-August/007590.html
new file mode 100644
index 000000000..4a698ebf8
--- /dev/null
+++ b/zarb-ml/mageia-dev/2011-August/007590.html
@@ -0,0 +1,155 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [Mageia-dev] systemd + ACL: Why it is broken.
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20systemd%20%2B%20ACL%3A%20Why%20it%20is%20broken.&In-Reply-To=%3C4E5901EB.6000403%40colin.guthr.ie%3E">
+ <META NAME="robots" CONTENT="index,nofollow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ <LINK REL="Previous" HREF="007517.html">
+ <LINK REL="Next" HREF="007231.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[Mageia-dev] systemd + ACL: Why it is broken.</H1>
+ <B>Colin Guthrie</B>
+ <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20systemd%20%2B%20ACL%3A%20Why%20it%20is%20broken.&In-Reply-To=%3C4E5901EB.6000403%40colin.guthr.ie%3E"
+ TITLE="[Mageia-dev] systemd + ACL: Why it is broken.">mageia at colin.guthr.ie
+ </A><BR>
+ <I>Sat Aug 27 16:40:43 CEST 2011</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="007517.html">[Mageia-dev] systemd + ACL: Why it is broken.
+</A></li>
+ <LI>Next message: <A HREF="007231.html">[Mageia-dev] RM replacement
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#7590">[ date ]</a>
+ <a href="thread.html#7590">[ thread ]</a>
+ <a href="subject.html#7590">[ subject ]</a>
+ <a href="author.html#7590">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>[As stated on another thread: just reposting here for future contextual
+history]
+
+OK, executive decision for now:
+
+I've just added the line:
+
+-session optional pam_systemd.so
+
+to /etc/pam.d/system-auth in the pam package.
+
+
+This change is quite safe:
+ 1. The leading - on the line means that if pam_systemd.so does not
+exist, it will be ignored.
+ 2. pamd_systemd.so itself is clever and if systemd is not running, it
+is a noop.
+
+So for all scenarios, this change is safe.
+
+If we want to do more with e.g. authconfig later, this can be done, but
+it's not strictly speaking needed for now.
+
+Col
+
+
+
+'Twas brillig, and Colin Guthrie at 25/08/11 15:26 did gyre and gimble:
+&gt;<i> Ping!
+</I>&gt;<i>
+</I>&gt;<i> Any thoughts on the below email?
+</I>&gt;<i>
+</I>&gt;<i> Seeing as udev 173 has landed which removes supoprt for udev-acl, we
+</I>&gt;<i> need to either back out 173 (or rebuild with udev-acl support) or we
+</I>&gt;<i> need to use systemd with the below changes officially blessed!
+</I>&gt;<i>
+</I>&gt;<i> Col
+</I>&gt;<i>
+</I>&gt;<i> 'Twas brillig, and Colin Guthrie at 04/08/11 18:43 did gyre and gimble:
+</I>&gt;&gt;<i> Hi,
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> OK, so the reason that device ACLs are kinda broken with systemd is
+</I>&gt;&gt;<i> because the acl stuff is being done twice, once via udev and again via
+</I>&gt;&gt;<i> systemd.... but sadly systemd gets it wrong as it's not aware of the
+</I>&gt;&gt;<i> user session, see:
+</I>&gt;&gt;<i> systemd-loginctl --no-pager
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> This is due to the fact that some essential additions to
+</I>&gt;&gt;<i> /etc/pam.d/system-auth are not done when systemd is installed.
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> I added the following line to the end of my system-auth (the &quot;login&quot;
+</I>&gt;&gt;<i> file where console kit connector lies didn't work):
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> -session optional pam_systemd.so
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> The question is, how should we handle this? Edit the pam package and add
+</I>&gt;&gt;<i> it or do something more complex? AFAIK Fedora uses a system to manage
+</I>&gt;&gt;<i> these files called authconfig.... not sure if we could/should adopt
+</I>&gt;&gt;<i> that. I don't know much about it.
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> On a related note, we'll also need to rebuild udev without udev-acl
+</I>&gt;&gt;<i> support, as this is now
+</I>&gt;&gt;<i> handled by systemd. At present, with the above fix to pam, I will be
+</I>&gt;&gt;<i> getting my ACLs written twice, which (when systemd knows I'm logged in)
+</I>&gt;&gt;<i> is fine. I think it's actually the default in udev 173, but
+</I>&gt;&gt;<i> we can do that manually with 172 via:
+</I>&gt;&gt;<i> --disable-udev_acl
+</I>&gt;&gt;<i> in udev.
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> That said, this would commit us to systemd so we need to tread carefully
+</I>&gt;&gt;<i> here as without systemd, then the ACLs would not get written with
+</I>&gt;&gt;<i> obvious consequences (basically the exact opposite of now!).
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> Anyway, for now I have my ACLs back and can use my audio devices! Yay!
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> Col
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i>
+</I>&gt;<i>
+</I>&gt;<i>
+</I>
+
+--
+
+Colin Guthrie
+mageia(at)colin.guthr.ie
+<A HREF="http://colin.guthr.ie/">http://colin.guthr.ie/</A>
+
+Day Job:
+ Tribalogic Limited [<A HREF="http://www.tribalogic.net/">http://www.tribalogic.net/</A>]
+Open Source:
+ Mageia Contributor [<A HREF="http://www.mageia.org/">http://www.mageia.org/</A>]
+ PulseAudio Hacker [<A HREF="http://www.pulseaudio.org/">http://www.pulseaudio.org/</A>]
+ Trac Hacker [<A HREF="http://trac.edgewall.org/">http://trac.edgewall.org/</A>]
+</PRE>
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="007517.html">[Mageia-dev] systemd + ACL: Why it is broken.
+</A></li>
+ <LI>Next message: <A HREF="007231.html">[Mageia-dev] RM replacement
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#7590">[ date ]</a>
+ <a href="thread.html#7590">[ thread ]</a>
+ <a href="subject.html#7590">[ subject ]</a>
+ <a href="author.html#7590">[ author ]</a>
+ </LI>
+ </UL>
+
+<hr>
+<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
+mailing list</a><br>
+</body></html>