[SM-Grimoire-Bugs] [Bug 10940] get_kernel_version isn't flexible enough

bugzilla-daemon at bugs.sourcemage.org bugzilla-daemon at bugs.sourcemage.org
Thu Oct 19 11:21:05 EDT 2006


------- Additional Comments From dmlb2000 at gmail.com  2006-10-19 10:21 -------
(In reply to comment #13)
> Could you be more specific about what the full running kernel check would 
> consist of? What tricks would it try before that one?

if [ -f /proc/sys/kenrel/osrelease ] ; then
    cat /proc/sys/kernel/osrelease
    uname -r

since `uname -r` can be over-ridden with a LD_PRELOAD hack it's a security risk
to use that first. However, `uname -r` does always return something so we should
use it to get something if all else fails.

Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the SM-Grimoire-Bugs mailing list