David Laight wrote:It doesn't. The usage of curproc in the example was to illustrate that we should be passing the credentials of the users making the request. The "listener" is kauth(9) terminology for a "callback", which is how kauth(9) works: every scope has a list of callbacks that are called whenever an authorization request on that scope. The actual check, as I've shown, is done via a bitmask check. One of the reasons I'm creating a scope and integrating securelevel with kauth(9) is that this will allow us later to build more sophisticated security models with little effort. One of the purposes of using the kauth(9) framework is exactly that -- once it's well integrated in the system, we can build on top of it anything we want, easily allowing our users to choose between a traditional Unix security model, capabilities, or MAC policies, because all authorization requests are handled in a single location. I'll admit that I'm not sure where you see a possibility for a double process switch to happen so before I can comment on it you'll have to elaborate a bit more. NetBSD is not the first OS to suggest changes as described above. First, if using the traditional Unix security model, then all these bits that were once suser() calls will, eventually, end up in a check for the effective user-id. As for the second issue -- the set-id mode bit will remain set, but will have affect only in the traditional Unix security model. Otherwise, we will have to store the required privileges (or "capabilities") of the program in its extended attributes. This, however, is something that *I* do not plan on implementing, which is why I haven't suggested yet any design of a capabilities system. Root retains its "powers" even with the suggested changes (either kauth(9) or the ones to securelevel), but we have the framework to easily take them away. :) Hope this helps, -e. -- Elad Efrat
| Karl Meyer | PROBLEM: 2.6.23-rc "NETDEV WATCHDOG: eth0: transmit timed out" |
| David Miller | Slow DOWN, please!!! |
| Mark Fasheh | [PATCH 0/39] Ocfs2 updates for 2.6.28 |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
git: | |
| Shawn O. Pearce | Re: pack operation is thrashing my server |
| Pierre Habouzit | git send-email improvements |
| Matthieu Moy | git push to a non-bare repository |
| Shawn O. Pearce | libgit2 - a true git library |
| Elad Efrat | Integrating securelevel and kauth(9) |
| Hubert Feyrer | Re: Compressed vnd handling tested successfully |
| Lord Isildur | Re: Fork bomb protection patch |
| Matt Thomas | Re: FFS journal |
| Will Maier | cron doesn't run commands in /etc/crontab? |
| Richard Stallman | Real men don't attack straw men |
| Harald Dunkel | Re: Packet Filter: how to keep device names on hardware failure? |
| Jordi Espasa Clofent | Resolving dependencies with pkg_add |
| Question on swap as ramdisk partition | 1 hour ago | Linux kernel |
| Netfilter kernel module | 11 hours ago | Linux kernel |
| serial driver xmit problem | 14 hours ago | Linux kernel |
| Why Windows is better than Linux | 14 hours ago | Linux general |
| How can I see my kernel messages in vt12? | 21 hours ago | Linux kernel |
| Grub | 1 day ago | Linux general |
| vmalloc_fault handling in x86_64 | 1 day ago | Linux kernel |
| epoll_wait()ing on epoll FD | 1 day ago | Linux kernel |
| Framebuffer in x86_64 causes problems to multiseat | 1 day ago | Linux kernel |
| Difference between 2.4 and 2.6 regarding thread creation | 2 days ago | Linux general |
