kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* mount  /proc at boot as read-only
@ 2019-01-06 18:13 Lev Olshvang
  2019-01-06 22:45 ` valdis.kletnieks
  2019-01-07  8:35 ` Greg KH
  0 siblings, 2 replies; 3+ messages in thread
From: Lev Olshvang @ 2019-01-06 18:13 UTC (permalink / raw)
  To: kernelnewbies


Hello all,

I am trying to harden the embedded system.

Is it possible and safe to mount /proc file system in a read-only mode and how to do this?
I have embedded system with systemd where /proc is mounted rw.
I suspect that systemd mounts it when it bebgns to bootsrtap user space. 

On my currently idle and small embedded board and on QEMU I was able to remount /proc read-only.
But when I changed fstab to mount it as a read-only it  is still mounted 
rw,relatime after reboot.


So who mounts it first ?
Is it hardcoded in systemd  when it starts process of PID 1 or in a kernel?



Regards,
Lev

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-01-07  8:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-06 18:13 mount /proc at boot as read-only Lev Olshvang
2019-01-06 22:45 ` valdis.kletnieks
2019-01-07  8:35 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).