Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
4f19b4d0
Unverified
Commit
4f19b4d0
authored
Mar 08, 2022
by
zhugezy
Committed by
GitHub
Mar 08, 2022
Browse files
remove a piece of redundant comment (#10392)
introduced in #10147 since we blocked the first-arg mechanism on subcommands
parent
38052fd7
Changes
1
Show whitespace changes
Inline
Side-by-side
src/acl.c
View file @
4f19b4d0
...
@@ -120,10 +120,7 @@ typedef struct {
...
@@ -120,10 +120,7 @@ typedef struct {
* understand if the command can be executed. */
* understand if the command can be executed. */
uint64_t
allowed_commands
[
USER_COMMAND_BITS_COUNT
/
64
];
uint64_t
allowed_commands
[
USER_COMMAND_BITS_COUNT
/
64
];
/* allowed_firstargs is used by ACL rules to block access to a command unless a
/* allowed_firstargs is used by ACL rules to block access to a command unless a
* specific argv[1] is given (or argv[2] in case it is applied on a sub-command).
* specific argv[1] is given.
* For example, a user can use the rule "-select +select|0" to block all
* SELECT commands, except "SELECT 0".
* And for a sub-command: "+config -config|set +config|set|loglevel"
*
*
* For each command ID (corresponding to the command bit set in allowed_commands),
* For each command ID (corresponding to the command bit set in allowed_commands),
* This array points to an array of SDS strings, terminated by a NULL pointer,
* This array points to an array of SDS strings, terminated by a NULL pointer,
...
...
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