lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <288328.633.qm@web90313.mail.mud.yahoo.com>
Date:	Tue, 22 May 2007 15:49:25 -0700 (PDT)
From:	Y Khan <ykhanportland@...oo.com>
To:	linux-kernel <linux-kernel@...r.kernel.org>
Subject: class_device_create() and the mode of the device file in /dev.

Hi All,

I am porting a driver from 2.4 to 2.6. I have replaced
the call devfs_register() with class_create() and
class_device_create(). Now, udev is automatically
creating the device file in /dev.

The device file being created has a default mode of
0600. Is it possible to override this default mode
from inside the kernel. I do not want to do anything
in the configuration file for udev.

I could modify the attribute of the class and the
class device but I do not think that they will change
the default permissions for the /dev device file.

devfs_register() used to take a mode argument.

So, is there anyway of achieving this in 2.6.

-Y




       
____________________________________________________________________________________Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.
http://smallbusiness.yahoo.com/webhosting 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ