From c09268a3fef0b9574b2b6227c9fac3096ad6654e Mon Sep 17 00:00:00 2001 From: Mark Salyzyn Date: Mon, 2 Mar 2015 09:14:51 -0800 Subject: [PATCH] bionic: deprecate _PATH_MEM /dev/mem (and /dev/kmem) are not enabled in the kernels, and selinux prevents access and makes it a rule compilation error to enable access. No code uses the _PATH_MEM macro. Remove definition to suppress future usage. Bug: 19549480 Change-Id: Ie0fb0f53d43349f4fe227068e4bf8a768f620d60 --- libc/include/paths.h | 1 - 1 file changed, 1 deletion(-) diff --git a/libc/include/paths.h b/libc/include/paths.h index 1eba53636..33c2eee1b 100644 --- a/libc/include/paths.h +++ b/libc/include/paths.h @@ -39,7 +39,6 @@ #define _PATH_CONSOLE "/dev/console" #define _PATH_DEVNULL "/dev/null" #define _PATH_KLOG "/proc/kmsg" -#define _PATH_MEM "/dev/mem" #define _PATH_MOUNTED "/proc/mounts" #define _PATH_TTY "/dev/tty"