diff options
author | Jorge Lucangeli Obes <jorgelo@google.com> | 2016-01-13 05:33:58 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-01-13 05:33:58 +0000 |
commit | 56937016a104b8248df0ca563e44f87e8c6967ab (patch) | |
tree | cba2a5de8b3d94075ab9e71b2c83c44084438e7b | |
parent | 891adfc33009c40fe58390dc636055dafd6f6ead (diff) | |
parent | 272e3ab72da543c3ed3cb1cf312e45796b149d19 (diff) | |
download | minijail-56937016a104b8248df0ca563e44f87e8c6967ab.tar.gz |
Fix Minijail build.
am: 272e3ab72d
* commit '272e3ab72da543c3ed3cb1cf312e45796b149d19':
Fix Minijail build.
-rw-r--r-- | libminijail.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/libminijail.c b/libminijail.c index 15ac5f7..3caafa4 100644 --- a/libminijail.c +++ b/libminijail.c @@ -173,8 +173,8 @@ void minijail_preexec(struct minijail *j) /* Note, |pids| will already have been used before this call. */ } -/* Return true if kernel version is less than 3.8. */ -static int seccomp_kernel_support_not_required() +/* Returns true if the kernel version is less than 3.8. */ +int seccomp_kernel_support_not_required() { int major, minor; struct utsname uts; @@ -183,10 +183,8 @@ static int seccomp_kernel_support_not_required() ((major < 3) || ((major == 3) && (minor < 8)))); } -/* - * Allow softfail on Android devices with kernel version < 3.8. - */ -static int can_softfail() +/* Allow seccomp soft-fail on Android devices with kernel version < 3.8. */ +int can_softfail() { #if SECCOMP_SOFTFAIL if (is_android()) { |