Hi all,
I would like to propose moving the config file into something like ~/.osmocom/ and not put it in a system wide directory. The path in /etc/ is the only part of OsmocomBB that requires root privileges, and I don't really think that in a case of multiple users you would want to e.g. share stuff like the IMSI / Ki anyway.
What do you think?
Harald Welte wrote:
I would like to propose moving the config file into something like ~/.osmocom/ and not put it in a system wide directory. The path in /etc/ is the only part of OsmocomBB that requires root privileges, and I don't really think that in a case of multiple users you would want to e.g. share stuff like the IMSI / Ki anyway.
What do you think?
Acked-by: Peter Stuge peter@stuge.se
Hi,
On 01/29/2011 07:18, Harald Welte wrote:
I would like to propose moving the config file into something like ~/.osmocom/ and not put it in a system wide directory. The path in /etc/ is the only part of OsmocomBB that requires root privileges, and I don't really think that in a case of multiple users you would want to e.g. share stuff like the IMSI / Ki anyway.
What do you think?
I'm ok too, with a patch attached.
HTH,
On 01/29/2011 13:56, Pierre Pronchery wrote:
I'm ok too, with a patch attached.
It was missing two additional #include.
For the record, when I implement this I usually fallback on glib's g_get_home_dir() in case getenv() fails. It typically uses getpwuid(getuid()) on *nix, but I suppose it'd be a bit overkill here :)
HTH,
Hi khorben,
It was missing two additional #include.
after some delay, I took the liberty of applying your patch to master, adding the followign changes: * coding style "if(" vs "if (" * use .osmocom/bb/mobile.cfg instead of .osmocom * use talloc instead of malloc
baseband-devel@lists.osmocom.org