You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bin/opencanaryd
+8-3Lines changed: 8 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -33,9 +33,11 @@ for arg in "$@"; do
33
33
esac
34
34
done
35
35
36
-
if [[ -z$TWISTD_UID_FLAG||-z$TWISTD_GID_FLAG ]];then
37
-
echo"WARNING: OpenCanary will not drop root user or group privileges after launching. Set both --uid=nobody and --gid=nogroup (another other low privilege user/group) to silence this warning."
38
-
fi
36
+
functionwarn_drop_privileges {
37
+
if [[ -z$TWISTD_UID_FLAG||-z$TWISTD_GID_FLAG ]];then
38
+
echo"WARNING: OpenCanary will not drop root user or group privileges after launching. Set both --uid=nobody and --gid=nogroup (or another low privilege user/group) to silence this warning.">&2
0 commit comments