Skip to content

Commit d7e623d

Browse files
committed
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>
1 parent 64f1607 commit d7e623d

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

‎fs/gfs2/sys.c‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -386,16 +386,16 @@ static ssize_t jid_show(struct gfs2_sbd *sdp, char *buf)
386386
#define GDLM_ATTR(_name,_mode,_show,_store) \
387387
static struct gfs2_attr gdlm_attr_##_name = __ATTR(_name,_mode,_show,_store)
388388

389-
GDLM_ATTR(proto_name, 0444, proto_name_show, NULL);
390-
GDLM_ATTR(block, 0644, block_show, block_store);
391-
GDLM_ATTR(withdraw, 0644, withdraw_show, withdraw_store);
392-
GDLM_ATTR(id, 0444, lkid_show, NULL);
393-
GDLM_ATTR(jid, 0444, jid_show, NULL);
394-
GDLM_ATTR(first, 0444, lkfirst_show, NULL);
395-
GDLM_ATTR(first_done, 0444, first_done_show, NULL);
396-
GDLM_ATTR(recover, 0200, NULL, recover_store);
397-
GDLM_ATTR(recover_done, 0444, recover_done_show, NULL);
398-
GDLM_ATTR(recover_status, 0444, recover_status_show, NULL);
389+
GDLM_ATTR(proto_name, 0444, proto_name_show, NULL);
390+
GDLM_ATTR(block, 0644, block_show, block_store);
391+
GDLM_ATTR(withdraw, 0644, withdraw_show, withdraw_store);
392+
GDLM_ATTR(id, 0444, lkid_show, NULL);
393+
GDLM_ATTR(jid, 0444, jid_show, NULL);
394+
GDLM_ATTR(first, 0444, lkfirst_show, NULL);
395+
GDLM_ATTR(first_done, 0444, first_done_show, NULL);
396+
GDLM_ATTR(recover, 0600, NULL, recover_store);
397+
GDLM_ATTR(recover_done, 0444, recover_done_show, NULL);
398+
GDLM_ATTR(recover_status, 0444, recover_status_show, NULL);
399399

400400
static struct attribute *lock_module_attrs[] = {
401401
&gdlm_attr_proto_name.attr,

0 commit comments

Comments
 (0)