Re: Deleting a file from within the kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2005-04-21 at 21:49 +0200, Tomas Telensky wrote:
> > 
> > > > > Of course you can. Kernel can do everything what the machine can do...
> > > > 
> > > > to delete a file you need both the parent directory and the namespace it
> > > > belongs in. Kernel mode has no such namespace realistically (or rather a
> > > > standardized one that doesn't have to be the same one userspace apps
> > > > have).
> > > 
> > > What do you mean with namespace? What do you need it for? All you should
> > > need is the pathname.
> > 
> > pathnames are relative to the namespace. See CLONE_NEWNS and related
> > things. Also chroots mess things up in this context (a name space is
> > sort of kinda a "super chroot").
> 
> Does this imply that the path "/" is not unique in the whole system 
> even when not using chroot?

correct.



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux