diff options
author | Bastien Nocera <hadess@hadess.net> | 2010-09-06 15:43:48 +0100 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2010-09-06 19:05:14 +0300 |
commit | 3a9811d70863b4922f26f70d8aa1a8eb77e41998 (patch) | |
tree | 639e782cd7bdd8067873b7276177be48b3376f6b /acinclude.m4 | |
parent | d23defc9445647a62e8893aaec631131f963a167 (diff) | |
download | bluez-3a9811d70863b4922f26f70d8aa1a8eb77e41998.tar.gz |
Make the path to oui.txt a compile-time option
This avoids bluetoothd trying to load oui.txt from multiple locations
and cause SELinux AVC denials by accessing files it's not supposed
to touch.
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index b34f08dff..a4e5e2f37 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -152,6 +152,14 @@ AC_DEFUN([AC_PATH_SNDFILE], [ AC_SUBST(SNDFILE_LIBS) ]) +AC_DEFUN([AC_PATH_OUI], [ + AC_ARG_WITH(ouifile, + AS_HELP_STRING([--with-ouifile=PATH],[Path to the oui.txt file @<:@auto@:>@]), + [ac_with_ouifile=$withval], + [ac_with_ouifile="/var/lib/misc/oui.txt"]) + AC_DEFINE_UNQUOTED(OUIFILE, ["$ac_with_ouifile"], [Define the OUI file path]) +]) + AC_DEFUN([AC_ARG_BLUEZ], [ debug_enable=no optimization_enable=yes |