Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
netctl
Commits
8a414978
Commit
8a414978
authored
Oct 21, 2013
by
Jouke Witteveen
Browse files
Set a global restrictive umask
Netctl files can potentially contain passwords or execute code as root.
parent
755c8d5a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/lib/globals
View file @
8a414978
...
...
@@ -5,6 +5,8 @@ CONN_DIR="$SUBR_DIR/connections"
STATE_DIR
=
"/run/network"
STATE_FILE
=
"
${
NETCTL_STATE_FILE
:-
/var/lib/netctl/netctl.state
}
"
umask
077
### Logging/Error reporting
...
...
src/lib/wpa
View file @
8a414978
...
...
@@ -198,7 +198,6 @@ wpa_make_config_file() {
report_debug
"Could not create the configuration file '
$config_file
'"
return
1
fi
chmod
600
"
$config_file
"
echo
"ctrl_interface=/run/wpa_supplicant"
>>
"
$config_file
"
echo
"ctrl_interface_group=
${
WPAGroup
:-
wheel
}
"
>>
"
$config_file
"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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