Ah, I thought so. Yes, I did initially. I then changed my mind. The
kernel drops caps on exec.
> The kernel knows what the mount options were. Userspace has little
> clue what they were. You could add a system call for that or hope
> that /etc/mtab has the data you need. Both options are crummy.
Actually, I suspect that I could get it to work even in user
space. You're right, you'd need a special system call. But it's
getting a bit ugly, and the amount of code needed to support a user
space scheme would be about the same as the amount of code required to
just do it in the kernel. And the kernel space implementation would be
100% robust.
> Your solution offers full support on old kernels, but that breaks
> if you add a system call to check the mount options.
My (new) scheme provides both.
Regards,
Richard....
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/