18
18
19
19
from dissect .target import Target , exceptions
20
20
from dissect .target .filesystem import Filesystem
21
- from dissect .target .filesystems import dir , ntfs
21
+ from dissect .target .filesystems import ntfs
22
22
from dissect .target .helpers import fsutil
23
23
from dissect .target .loaders .remote import RemoteStreamConnection
24
24
from dissect .target .loaders .targetd import TargetdLoader
@@ -281,17 +281,7 @@ class Sys(Module):
281
281
282
282
@classmethod
283
283
def _run (cls , target : Target , cli_args : argparse .Namespace , collector : Collector ) -> None :
284
- if not Path ("/sys" ).exists ():
285
- log .error ("/sys is unavailable! Skipping..." )
286
- return
287
-
288
284
spec = [("dir" , "/sys" )]
289
-
290
- sysfs = dir .DirectoryFilesystem (Path ("/sys" ))
291
-
292
- target .filesystems .add (sysfs )
293
- target .fs .mount ("/sys" , sysfs )
294
-
295
285
collector .collect (spec , follow = False , volatile = True )
296
286
297
287
@@ -303,16 +293,7 @@ class Proc(Module):
303
293
304
294
@classmethod
305
295
def _run (cls , target : Target , cli_args : argparse .Namespace , collector : Collector ) -> None :
306
- if not Path ("/proc" ).exists ():
307
- log .error ("/proc is unavailable! Skipping..." )
308
- return
309
-
310
296
spec = [("dir" , "/proc" )]
311
- procfs = dir .DirectoryFilesystem (Path ("/proc" ))
312
-
313
- target .filesystems .add (procfs )
314
- target .fs .mount ("/proc" , procfs )
315
-
316
297
collector .collect (spec , follow = False , volatile = True )
317
298
318
299
0 commit comments