lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOD=uF6oBZ0cmNH4Jf9Hs4ZU3Y4WO-wfvc4k0b7Ezpo63S7Dag@mail.gmail.com>
Date:	Wed, 5 Nov 2014 16:26:35 +0530
From:	santosh nayak <santoshprasadnayak@...il.com>
To:	Richard Weinberger <richard.weinberger@...il.com>
Cc:	linux-kernel <linux-kernel@...r.kernel.org>,
	"kernel-janitors@...r.kernel.org" <kernel-janitors@...r.kernel.org>
Subject: Re: How to access Linux Kernel environment Variables ?

Thanks Richard for your response.

Is there any system call in Linux which can access and set variables
in /proc/cmdline ?  (Similar to kenv() in FreeBSD which can access and
set variables in /boot/loader.conf).

I would like to use that system call in linux C code, the  way I am
using kenv() in freeBSD environment.

Regards
Santosh

On Wed, Nov 5, 2014 at 2:44 PM, Richard Weinberger
<richard.weinberger@...il.com> wrote:
> On Wed, Nov 5, 2014 at 9:03 AM, santosh prasad nayak
> <santoshprasadnayak@...il.com> wrote:
>> Hi all,
>>
>> Is there any system call in Linux which serve the purpose of  "kenv()"
>> of FreeBSD ?
>>
>>
>> In FreeBSD:
>> -----------------
>> Kernel environment variables are saved at "/boot/loader.conf"  and
>> those variables can be accessed using "kenv()"  system call in C
>> program.
>> ----------------
>>
>>
>> Is there any similar functionality available in Linux kernel ?
>
> /proc/cmdline?
>
> --
> Thanks,
> //richard
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ