On Fri, 24 Mar 2006 23:24:47 +0200 Elad Efrat <elad@NetBSD.org> wrote:Was this profiled? Of course, performance impact on the system as a whole may become worse as more restrictions are applied to more types of accesses as well, IMO. I.E. if more frequent code paths eventually also need to verify for authorization (is this part of future goals? What are worst expected future scenarios?) I would be interested in seeing common cases before/after profiled data, considering the assumed overhead of a list of function pointers being ran for a particular scope, with a function call per listener (if I properly understood kauth(9))... Especially if we intend to totally replace the old system by it. If I recall we do have architectures with a high function call cost... Will such an architecture, possibly a candidate for securelevel restrictions in an embedded device, suffer from this? Or are the costs minimal? Nonetheless, I do recognize the high flexibility of this system compared to doing a check against a single global securelevel variable, of course. It will allow to integrate a number of nice features. :) So far, from the man page, I like the design, but it also made me wonder about the performance impact, especially as more specific restrictions get added, a number of LKMs loaded as the kernel becomes more dynamic/modular, etc If profiled data and future expectations do show a significant performance impact, it would probably be a good idea to continue supporting the less flexible old method instead of obsoleting it totally, or to review the implementation details of kauth(9). Also, could all authorization checks still be disabled as a whole, just like when we set the kernel to insecure? Or would this code always be within the path of common syscalls (although possibly without listeners)? If it can totally be disabled, I assume that LKMs could register new listeners, but that they simply would never be called? Are there reasons why simply setting a deny flag per scope per security property wouldn't work, instead of calling a list of functions which can dynamically defer or deny? If so, which possible scenario demonstrates that such live flexibility is required? Just so we work out or eliminate the performance concerns. I admit I didn't look at the code yet have to ask so many questions... Thanks, Matt -- Note: Please only reply on the list, other mail is blocked by default. Private messages from your address can be allowed by first asking.
| 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 |
