Re: [PATCH] private mounts

From: Miklos Szeredi (miklos_at_szeredi.hu)
Date: 04/30/05

  • Next message: Miklos Szeredi: "Re: [PATCH] cifs: handle termination of cifs oplockd kernel thread"
    To: jamie@shareable.org
    Date:	Sat, 30 Apr 2005 19:07:56 +0200
    
    

    > But you don't need a new system call to bind an fd.
    >
    > "mount --bind /proc/self/fd/N mount_point" works, try it.

    Ahh, yes :)

    Still proc_check_root() has to be relaxed, to allow dereferencing link
    under a different namespace. Maybe the check should be skipped for
    capable(CAP_SYS_ADMIN) or similar.

    What do people think about that?

    Miklos
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Miklos Szeredi: "Re: [PATCH] cifs: handle termination of cifs oplockd kernel thread"

    Relevant Pages

    • Re: [PATCH] private mounts
      ... >> But you don't need a new system call to bind an fd. ... > Ahh, yes:) ... > under a different namespace. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Linux Virtual Network Device
      ... >> be masqueraded (by bind or dnsmasq?) by their dns name ... But howto get dns ... masquerading working with bind? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [linux-usb-devel] Re: RFC: [2.6 patch] let BLK_DEV_UB depend on EMBEDDED
      ... On Mon, 2004-12-20 at 10:28 -0500, Alan Stern wrote: ... > Unfortunately there isn't any way to define which driver should bind to a ... I am sure the ALSA developers would welcome a generic solution for this ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [patch 02/18] Driver Core: add helper device_is_registered()
      ... idea by Alan Stern. ... /* remove this interface if it has been registered */ ... /* if interface was already added, bind now; ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: udev and devfs - The final word
      ... > Ahh. ... > It shouldn't be fixed by saying "device numbers have to be stable across ... export of filesystem that lives on $new_weird_device, explicit fsid= is ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)