Docker-DCO-1.1-Signed-off-by: Guillaume J. Charmes <guillaume.charmes@docker.com> (github: creack)
| ... | ... |
@@ -1,8 +1,7 @@ |
| 1 | 1 |
package sysinfo |
| 2 | 2 |
|
| 3 | 3 |
import ( |
| 4 |
- "github.com/dotcloud/docker/cgroups" |
|
| 5 |
- "github.com/dotcloud/docker/utils" |
|
| 4 |
+ "github.com/dotcloud/docker/cgroups" // FIXME: move cgroups in pkg |
|
| 6 | 5 |
"io/ioutil" |
| 7 | 6 |
"log" |
| 8 | 7 |
"os" |
| ... | ... |
@@ -45,10 +44,8 @@ func New(quiet bool) *SysInfo {
|
| 45 | 45 |
|
| 46 | 46 |
// Check if AppArmor seems to be enabled on this system. |
| 47 | 47 |
if _, err := os.Stat("/sys/kernel/security/apparmor"); os.IsNotExist(err) {
|
| 48 |
- utils.Debugf("/sys/kernel/security/apparmor not found; assuming AppArmor is not enabled.")
|
|
| 49 | 48 |
sysInfo.AppArmor = false |
| 50 | 49 |
} else {
|
| 51 |
- utils.Debugf("/sys/kernel/security/apparmor found; assuming AppArmor is enabled.")
|
|
| 52 | 50 |
sysInfo.AppArmor = true |
| 53 | 51 |
} |
| 54 | 52 |
return sysInfo |