* [Cluster-devel] GFS2: Fix permissions on "recover" file
@ 2009-08-11 9:37 Steven Whitehouse
2009-08-11 21:53 ` [Cluster-devel] " David Teigland
0 siblings, 1 reply; 2+ messages in thread
From: Steven Whitehouse @ 2009-08-11 9:37 UTC (permalink / raw)
To: cluster-devel.redhat.com
From ef7e8bb707ea3b569d4e206e46b8e44ec11e566f Mon Sep 17 00:00:00 2001
From: Steven Whitehouse <swhiteho@redhat.com>
Date: Tue, 11 Aug 2009 11:20:11 +0100
Subject: GFS2: Fix permissions on "recover" file
Although this file is only ever written and not read by
userspace, it seems that the utils are opening this
file O_RDWR, so we need to allow that.
Also fixes the whitespace which seemed to be broken.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Cc: David Teigland <teigland@redhat.com>
---
fs/gfs2/sys.c | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/fs/gfs2/sys.c b/fs/gfs2/sys.c
index f520480..dda4bf1 100644
--- a/fs/gfs2/sys.c
+++ b/fs/gfs2/sys.c
@@ -386,16 +386,16 @@ static ssize_t jid_show(struct gfs2_sbd *sdp, char *buf)
#define GDLM_ATTR(_name,_mode,_show,_store) \
static struct gfs2_attr gdlm_attr_##_name = __ATTR(_name,_mode,_show,_store)
-GDLM_ATTR(proto_name, 0444, proto_name_show, NULL);
-GDLM_ATTR(block, 0644, block_show, block_store);
-GDLM_ATTR(withdraw, 0644, withdraw_show, withdraw_store);
-GDLM_ATTR(id, 0444, lkid_show, NULL);
-GDLM_ATTR(jid, 0444, jid_show, NULL);
-GDLM_ATTR(first, 0444, lkfirst_show, NULL);
-GDLM_ATTR(first_done, 0444, first_done_show, NULL);
-GDLM_ATTR(recover, 0200, NULL, recover_store);
-GDLM_ATTR(recover_done, 0444, recover_done_show, NULL);
-GDLM_ATTR(recover_status, 0444, recover_status_show, NULL);
+GDLM_ATTR(proto_name, 0444, proto_name_show, NULL);
+GDLM_ATTR(block, 0644, block_show, block_store);
+GDLM_ATTR(withdraw, 0644, withdraw_show, withdraw_store);
+GDLM_ATTR(id, 0444, lkid_show, NULL);
+GDLM_ATTR(jid, 0444, jid_show, NULL);
+GDLM_ATTR(first, 0444, lkfirst_show, NULL);
+GDLM_ATTR(first_done, 0444, first_done_show, NULL);
+GDLM_ATTR(recover, 0600, NULL, recover_store);
+GDLM_ATTR(recover_done, 0444, recover_done_show, NULL);
+GDLM_ATTR(recover_status, 0444, recover_status_show, NULL);
static struct attribute *lock_module_attrs[] = {
&gdlm_attr_proto_name.attr,
--
1.6.2.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Cluster-devel] Re: GFS2: Fix permissions on "recover" file
2009-08-11 9:37 [Cluster-devel] GFS2: Fix permissions on "recover" file Steven Whitehouse
@ 2009-08-11 21:53 ` David Teigland
0 siblings, 0 replies; 2+ messages in thread
From: David Teigland @ 2009-08-11 21:53 UTC (permalink / raw)
To: cluster-devel.redhat.com
On Tue, Aug 11, 2009 at 10:37:56AM +0100, Steven Whitehouse wrote:
> >From ef7e8bb707ea3b569d4e206e46b8e44ec11e566f Mon Sep 17 00:00:00 2001
> From: Steven Whitehouse <swhiteho@redhat.com>
> Date: Tue, 11 Aug 2009 11:20:11 +0100
> Subject: GFS2: Fix permissions on "recover" file
>
> Although this file is only ever written and not read by
> userspace, it seems that the utils are opening this
> file O_RDWR, so we need to allow that.
Works now, Thanks
Dave
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-08-11 21:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-11 9:37 [Cluster-devel] GFS2: Fix permissions on "recover" file Steven Whitehouse
2009-08-11 21:53 ` [Cluster-devel] " David Teigland
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.