linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] create_floppy_devices modifying mode via umask
@ 2007-03-05 18:16 Matthias Schwarzott
  2007-03-07 16:26 ` Kay Sievers
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Matthias Schwarzott @ 2007-03-05 18:16 UTC (permalink / raw)
  To: linux-hotplug

[-- 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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-03-08 11:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-05 18:16 [PATCH] create_floppy_devices modifying mode via umask Matthias Schwarzott
2007-03-07 16:26 ` Kay Sievers
2007-03-08  8:51 ` Matthias Schwarzott
2007-03-08 11:28 ` Kay Sievers

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).