Slashdot Mirror


User: greyc

greyc's activity in the archive.

Stories
0
Comments
30
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 30

  1. Re:Dear god no. on Should JavaScript Get More Respect? · · Score: 2, Informative

    Blargh. I should take a bit more time to think before posting. What I meant was:

    class foo:
          def __init__(self, n):
                  self.n = n
          def __call__(self, i):
                  self.n += i
                  return self.n

  2. Re:Dear god no. on Should JavaScript Get More Respect? · · Score: 1

    Python:
    class foo:
          def __init__(self, n):
                  self.n = n
          def __call__(self, i):
                  self.n =+ i
                  return i

    That's too long/complicated for you?

  3. Re:What about other ELF systems? on Weakness In Linux Kernel's Binary Format · · Score: 1

    The point is, once you have root, there are any number of ways to compromise the system and hide your exploits.

    That's not necessarily true on recent Linux versions, or at least it isn't for the reasons that you listed. Aside from the fact that /dev/kmem and loadable modules can be disabled, even if those features are active, not all processes with UID 0 necessarily have access to them.
    For quite some time now, Linux has included support for POSIX Capabilities. The API is ugly as heck, and unfortunately there isn't any FS support (analogous to set{u,g}id flags) yet, but the basic functionality (dropping selected capabilities, changing UID without dropping capabilities) does work.
    Module (un)loading is CAP_SYS_MODULE. Ignoring file permissions is CAP_DAC_OVERRIDE. There's some other pretty critical stuff like CAP_MKNOD, but in principle it should be possible for a uid 0 process to have no special privileges whatsoever.
    Access to binfmt should not change this fact.

    Of course, in practice there probably aren't very many vanilla linux systems that rely on this at the moment. If one does want to retain only some privileges, the sound practice is to not only drop the others but also change UID; for one thing, a lot of critical files (like /etc/shadow) are still owned by uid 0 by default.

  4. Re:64-bit Debian != 64-bit Fedora on Debian to Run on AMD64 · · Score: 2, Informative
    You can tell whether a binary is 32- or 64-bit by doing ldd on it; if the hex numbers are 16 digits long, then it is 64-bit.
    Or you could just use any half-recent version of file(1):

    $ file /bin/cat
    /bin/cat: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.0, dynamically linked (uses shared libs), for GNU/Linux 2.6.0, stripped
    $ file /chroot/deb32/bin/cat
    /chroot/deb32/bin/cat: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.0, dynamically linked (uses shared libs), for GNU/Linux 2.2.0, stripped
  5. Re:Combine with Das Monitor on Das Keyboard: Hit Any Key · · Score: 1

    That would be ripping off StupidaScreen (described at the bottom of the page).