mdev.conf setting example for running with linux kernel's IMA/EVM
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Thu Oct 18 08:53:55 UTC 2018
On Thu, 18 Oct 2018 at 09:47, Bernhard Reutner-Fischer
<rep.dot.nop at gmail.com> wrote:
>
> On Wed, 17 Oct 2018 at 11:02, 趙翊廷 <jackend at csie.io> wrote:
>
> > 2. in /etc/mdev.confg we need to add a symbol link something like /dev/block/3:0
> > hd[a-z]* 0:6 660 *ln -sf /dev/$MDEV /dev/block/$(ls -l /dev/$MDEV|awk '{print $5}'|tr -d ','):$(ls -l /dev/$MDEV|awk '{print $6}')
> > sd[a-z]* 0:6 660 *ln -sf /dev/$MDEV /dev/block/$(ls -l /dev/$MDEV|awk '{print $5}'|tr -d ','):$(ls -l /dev/$MDEV|awk '{print $6}')
Furthermore, didn't we have a shorthand for symlinks -- aliaslink --
like (from memory) one of:
* ->symlinktarget
* > symlinktarget
or the like?
Also, the '*' (IIRC) symlinks also on removal if you do not use the
built-in symlink support, so i'd expect you want more like (again
IIRC) '@', i.e. create.
Maybe even simpler might be to create the disks as
/dev/block/MAJOR:MINOR and symlink back to /dev/DEVNAME, i.e. the
other way round.
HTH,
More information about the busybox
mailing list