So, dmidecode directly mmap's to /dev/mem and does some probing based on the belief that the system is a x86 architecture even on arm architectures.
openat(AT_FDCWD, "/dev/mem", O_RDONLY) = 3 fstat(3, {st_mode=S_IFCHR|0640, st_rdev=makedev(0x1, 0x1), ...}) = 0 mmap(NULL, 65536, PROT_READ, MAP_SHARED, 3, 0xf0000) = 0x7f9f6fd000
etc
So that's kind of intrusive and as root one can read any sort of physical addresses in /dev/mem that may cause breakage.
So, dmidecode directly mmap's to /dev/mem and does some probing based on the belief that the system is a x86 architecture even on arm architectures.
openat(AT_FDCWD, "/dev/mem", O_RDONLY) = 3 S_IFCHR| 0640, st_rdev= makedev( 0x1, 0x1), ...}) = 0
fstat(3, {st_mode=
mmap(NULL, 65536, PROT_READ, MAP_SHARED, 3, 0xf0000) = 0x7f9f6fd000
etc
So that's kind of intrusive and as root one can read any sort of physical addresses in /dev/mem that may cause breakage.