From: Matthias Schwarzott <zzam@gentoo.org>
To: linux-hotplug@vger.kernel.org
Subject: [PATCH] create_floppy_devices modifying mode via umask
Date: Mon, 05 Mar 2007 18:16:47 +0000 [thread overview]
Message-ID: <200703051916.47664.zzam@gentoo.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 296 bytes --]
Hi Kay, hi List!
This one line patch against udev-106 adds umask(0) call to
create_floppy_devices to change inherited umask of 022 (from udevd) which was
restricting group write permissions for the created device nodes for our
rules (using -M 0660).
Matthias
--
Matthias Schwarzott (zzam)
[-- Attachment #2: udev-106-floppy-devices-no-umask.diff --]
[-- Type: text/x-diff, Size: 336 bytes --]
diff --git a/extras/floppy/create_floppy_devices.c b/extras/floppy/create_floppy_devices.c
index 7b61ef0..187324e 100644
--- a/extras/floppy/create_floppy_devices.c
+++ b/extras/floppy/create_floppy_devices.c
@@ -155,6 +155,8 @@ int main(int argc, char **argv)
if (type == 0)
return 0;
+ umask(0);
+
selinux_init();
i = 0;
[-- Attachment #3: Type: text/plain, Size: 345 bytes --]
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
[-- Attachment #4: Type: text/plain, Size: 226 bytes --]
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
next reply other threads:[~2007-03-05 18:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-05 18:16 Matthias Schwarzott [this message]
2007-03-07 16:26 ` [PATCH] create_floppy_devices modifying mode via umask Kay Sievers
2007-03-08 8:51 ` Matthias Schwarzott
2007-03-08 11:28 ` Kay Sievers
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=200703051916.47664.zzam@gentoo.org \
--to=zzam@gentoo.org \
--cc=linux-hotplug@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).