From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthias Schwarzott Date: Mon, 05 Mar 2007 18:16:47 +0000 Subject: [PATCH] create_floppy_devices modifying mode via umask Message-Id: <200703051916.47664.zzam@gentoo.org> MIME-Version: 1 Content-Type: multipart/mixed; boundary="Boundary-00=_P6F7FGrzBoxWCFk" List-Id: To: linux-hotplug@vger.kernel.org --Boundary-00=_P6F7FGrzBoxWCFk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline 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) --Boundary-00=_P6F7FGrzBoxWCFk Content-Type: text/x-diff; charset="utf-8"; name="udev-106-floppy-devices-no-umask.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="udev-106-floppy-devices-no-umask.diff" 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; --Boundary-00=_P6F7FGrzBoxWCFk Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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 --Boundary-00=_P6F7FGrzBoxWCFk Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --Boundary-00=_P6F7FGrzBoxWCFk--