dev Ordner ...

Alles rund um sicherheitsrelevante Fragen und Probleme.
Antworten
Benutzeravatar
Duessi
Beiträge: 45
Registriert: 10.04.2021 17:42:16

dev Ordner ...

Beitrag von Duessi » 27.04.2022 15:41:52

Einen sonnigen Tag wünsche ich,
habe so eben meinen dev Ordner angesehen und mir sind einige Dateien aufgefallen. die in der Menge
merkwürdig anmuten.

...???

Code: Alles auswählen

adsp		 cuse	      hidraw2	 loop0	 loop2	 loop30        mixer   rfkill	 snd	 tty15	tty26  tty37  tty48  tty59  ttyS3    vcs7   vcsu3	 zero
audio		 disk	      hidraw3	 loop1	 loop20  loop31        mixer1  rtc	 stderr  tty16	tty27  tty38  tty49  tty6   uhid     vcsa   vcsu4
autofs		 dri	      hidraw4	 loop10  loop21  loop4	       mqueue  rtc0	 stdin	 tty17	tty28  tty39  tty5   tty60  uinput   vcsa1  vcsu5
block		 drm_dp_aux0  hidraw5	 loop11  loop22  loop5	       net     sda	 stdout  tty18	tty29  tty4   tty50  tty61  urandom  vcsa2  vcsu6
bsg		 dsp	      hidraw6	 loop12  loop23  loop6	       null    sda1	 tty	 tty19	tty3   tty40  tty51  tty62  usb      vcsa3  vcsu7
btrfs-control	 fb0	      hpet	 loop13  loop24  loop7	       nvram   sda2	 tty0	 tty2	tty30  tty41  tty52  tty63  vcs      vcsa4  vfio
bus		 fb1	      hugepages  loop14  loop25  loop8	       port    sda5	 tty1	 tty20	tty31  tty42  tty53  tty7   vcs1     vcsa5  vga_arbiter
char		 fd	      initctl	 loop15  loop26  loop9	       ppp     sdb	 tty10	 tty21	tty32  tty43  tty54  tty8   vcs2     vcsa6  vhci
console		 full	      input	 loop16  loop27  loop-control  psaux   sg0	 tty11	 tty22	tty33  tty44  tty55  tty9   vcs3     vcsa7  vhost-net
core		 fuse	      kmsg	 loop17  loop28  mapper        ptmx    sg1	 tty12	 tty23	tty34  tty45  tty56  ttyS0  vcs4     vcsu   vhost-vsock
cpu		 hidraw0      kvm	 loop18  loop29  mei0	       pts     shm	 tty13	 tty24	tty35  tty46  tty57  ttyS1  vcs5     vcsu1  watchdog
cpu_dma_latency  hidraw1      log	 loop19  loop3	 mem	       random  snapshot  tty14	 tty25	tty36  tty47  tty58  ttyS2  vcs6     vcsu2  watchdog0
...???

Was stimmt hier nicht mit den "loops" und den "ttys" ?
Wie bekomme ich das behoben oder ausgedünnt?

Viele Grüße aus NRW
Zuletzt geändert von smutbert am 27.04.2022 21:25:33, insgesamt 1-mal geändert.
Grund: Code-Tags eingefügt

Benutzeravatar
smutbert
Moderator
Beiträge: 8331
Registriert: 24.07.2011 13:27:39
Wohnort: Graz

Re: dev Ordner ...

Beitrag von smutbert » 27.04.2022 16:09:02

Nachdem du den Thread zwei Mal erstellt hast, habe ich einen davon entfernt (ins nicht öffentlich zugängliche Archiv verschoben).

und zum Thema:
Beim Kernelmodul loop kann man beispielsweise in den Moduloptionen (max_loop) angeben wieviele Loop-Geräte erstellt werden sollen. Da könntest du mit

Code: Alles auswählen

modprobe -c | grep max_loop
nachsehen ob das aktuell abweichend vom Default (8 Geräte) konfiguriert ist.

Benutzeravatar
Duessi
Beiträge: 45
Registriert: 10.04.2021 17:42:16

Re: dev Ordner ...

Beitrag von Duessi » 27.04.2022 18:09:10

Gab zurück: bash: modprobe: Kommando nicht gefunden.
In meinem Falle ergab: kmod list

... >>
NoPaste-Eintrag41662
längere Ausgabe nach Nopaste verschoben, smutbert
...<<

... und was macht das sogenannte loop?
Zuletzt geändert von smutbert am 27.04.2022 21:20:00, insgesamt 1-mal geändert.
Grund: Ausgabe nach Nopaste verschoben

DeletedUserReAsG

Re: dev Ordner ...

Beitrag von DeletedUserReAsG » 27.04.2022 18:14:49

Duessi hat geschrieben: ↑ zum Beitrag ↑
27.04.2022 18:09:10
was macht das sogenannte loop?
man loop

OT: würd’s dir viel ausmachen, deine Beiträge halbwegs ordentlich zu formatieren, und lange Ausgaben auszulagern?

Benutzeravatar
smutbert
Moderator
Beiträge: 8331
Registriert: 24.07.2011 13:27:39
Wohnort: Graz

Re: dev Ordner ...

Beitrag von smutbert » 27.04.2022 21:34:11

modprobe ist im Suchpfad von root, also entweder mit

Code: Alles auswählen

su -
root werden und dann den Befehl ausführen oder als normaler Benutzer mit Pfadangabe, wobei ich mir nicht sicher bin, dass die Ausgabe als normaler Benutzer immer das gewünschte komplett enthält

Code: Alles auswählen

/sbin/modprobe -c | grep max_loop
Dieser Befehl listet nicht einfach die geladenen Kernelmodule auf wie »kmod list« sondern durchsucht die Konfiguration der Kernelmodule nach der Moduloption max_loop.
Du könntest z.B. irgendeine Software installiert haben, die diese Option in einer Konfigurationsdatei setzt – du hast ja beispielsweise offensichtlich irgendeine Virtualisierungssoftware installiert, das könnte thematisch zu loop passen.

Benutzeravatar
Duessi
Beiträge: 45
Registriert: 10.04.2021 17:42:16

Re: dev Ordner ...

Beitrag von Duessi » 30.04.2022 08:49:27

Das ordne ich dem Xen Hypervisor zu. Den benötige ich nicht mehr - wird deinstalliert.
Danke!

Antworten