[Linux-cluster] Permissions in create_dlm_namespace() call ignored

Patrick Caulfield pcaulfie at redhat.com
Wed Aug 18 13:46:45 UTC 2004


On Wed, Aug 18, 2004 at 09:16:05AM -0400, Jeff wrote:
> Assuming that the named DLM namespace does not
> already exist, the following code should
> create a namespace which any process on the system
> can open. However it doesn't work and subsequent
> processes must be root or else the open_lockspace
> call fails with

Odd, it works here:

dlm_create_lockspace(lsname, 0755);

# ls -l /dev/misc/
total 0
crw-r--r--  1 root root 10, 62 Jun 11 08:20 dlm-control
crw-------  1 root root 10, 61 Aug 17 13:39 dlm_default
crwxr-xr-x  1 root root 10, 60 Aug 18 14:44 dlm_testls
crw-r--r--  1 root root 10, 62 Feb 19 08:38 gdlm

Have you checked the value of umask ?
or is SELinux getting in the way ?(eek!)

-- 

patrick




More information about the Linux-cluster mailing list