report when rootless

when running as rootless, report as such.

resolves: #1509
Signed-off-by: baude <bbaude@redhat.com>

Closes: #1514
Approved by: rhatdan
This commit is contained in:
baude 2018-09-19 18:35:58 -05:00 committed by Atomic Bot
parent cad16bd671
commit af12e6534e
1 changed files with 2 additions and 0 deletions

View File

@ -147,6 +147,8 @@ func main() {
if err := syscall.Setrlimit(syscall.RLIMIT_NOFILE, rlimits); err != nil {
return errors.Wrapf(err, "error setting new rlimits")
}
} else {
logrus.Info("running as rootless")
}
if logLevel == "debug" {