> -----Original Message----- > From: Rusty Russell [mailto:ru...@rustcorp.com.au] > Sent: Tuesday, January 20, 2015 2:33 PM > To: Wang, Yalin; 'a...@linux-foundation.org'; 'jani.nik...@intel.com'; > 'h...@infradead.org'; 'h...@suse.de'; 'keesc...@chromium.org'; 'linux- > ker...@vger.kernel.org' > Subject: Re: [RFC] export module parameters even the permission is zero > > "Wang, Yalin" <yalin.w...@sonymobile.com> writes: > > This patch make sure to export module parameters even the permission > > is zero, this is useful for some platforms like Android, the init > > process can change the parameter mode/owner by chmod/chown during > > bootup > > > > Signed-off-by: Yalin Wang <yalin.w...@sonymobile.com> > > Hi! > > Unfortunately, this won't work. Various parts of the code assume > that 0 permissions means "cannot be changed or read", so this change would > introduce many bugs (eg. the parameter could be __initdata). > > Since these are owned by root at boot, changing mode and owner should still > work. However, you can't make a read-only field writable and expect it to > work. > Oh, I see, This means kernel cmdline can change this module_parameter ignored permission,
Thanks for your comments. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/