diff options
author | hunt <hunt> | 2007-06-18 21:01:11 +0000 |
---|---|---|
committer | hunt <hunt> | 2007-06-18 21:01:11 +0000 |
commit | 24374413e181f47ce4c1330e4b64634c985d23a0 (patch) | |
tree | ced0ba48165888303d490c9f5afb5ab4acd7db21 | |
parent | 36928c68693750e24eef2216bc47952b88416008 (diff) | |
download | systemtap-steved-24374413e181f47ce4c1330e4b64634c985d23a0.tar.gz systemtap-steved-24374413e181f47ce4c1330e4b64634c985d23a0.tar.xz systemtap-steved-24374413e181f47ce4c1330e4b64634c985d23a0.zip |
Fix mode in procfs cmd file.
-rw-r--r-- | runtime/transport/control.c | 2 | ||||
-rw-r--r-- | runtime/transport/procfs.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/runtime/transport/control.c b/runtime/transport/control.c index 04b79869..7b14901e 100644 --- a/runtime/transport/control.c +++ b/runtime/transport/control.c @@ -258,7 +258,7 @@ static int _stp_register_ctl_channel (void) /* create [debugfs]/systemtap/module_name/cmd */ - _stp_cmd_file = debugfs_create_file("cmd", 0666, _stp_utt->dir, NULL, &_stp_ctl_fops_cmd); + _stp_cmd_file = debugfs_create_file("cmd", 0600, _stp_utt->dir, NULL, &_stp_ctl_fops_cmd); if (_stp_cmd_file == NULL) goto err0; return 0; diff --git a/runtime/transport/procfs.c b/runtime/transport/procfs.c index a7b4cee5..c6e3f46a 100644 --- a/runtime/transport/procfs.c +++ b/runtime/transport/procfs.c @@ -393,7 +393,7 @@ static int _stp_register_ctl_channel (void) #endif /* STP_BULKMODE */ /* finally create /proc/systemtap/module_name/cmd */ - de = create_proc_entry ("cmd", S_IFREG|S_IRUSR, _stp_proc_mod); + de = create_proc_entry ("cmd", S_IFREG|S_IRUSR|S_IWUSR, _stp_proc_mod); if (de == NULL) goto err1; de->proc_fops = &_stp_proc_fops_cmd; |