Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
ff682d79
Commit
ff682d79
authored
Jul 19, 2019
by
John Sully
Browse files
Modules must have execute permissions to load
parent
70534846
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/module.c
View file @
ff682d79
...
...
@@ -5164,7 +5164,7 @@ int moduleLoad(const char *path, void **module_argv, int module_argc) {
struct
stat
st
;
if
(
stat
(
path
,
&
st
)
==
0
)
{
// this check is best effort
if
(
!
(
st
.
st_mode
&
S_I
EXEC
))
{
if
(
!
(
st
.
st_mode
&
(
S_I
XUSR
|
S_IXGRP
|
S_IXOTH
)
))
{
serverLog
(
LL_WARNING
,
"Module %s failed to load: It does not have execute permissions."
,
path
);
return
C_ERR
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment