1. p9auth driver in Linux kernel

    Preventing privilege escalation: The Plan 9 way!

    Rahul Murmuria

    Graduate Student, George Mason University

  2. Related Work

  3. Preventing Privledge Escalation

  4. Introducing: The p9auth driver

  5. Overview

  6. Testing the cap device

    $ id rahul
    uid=1000(rahul) gid=1000(rahul) groups=1000(rahul)
    $ id murmuria
    uid=1001(murmuria) gid=1001(murmuria) groups=1001(murmuria),10(wheel)
    $ whoami
    rahul
    $ openssl sha1 -hmac "$RANDSTR" "1000@1001" | awk '{ print $2 '} > /dev/caphash
    $ echo "1000@1001@$RANDSTR" > /dev/capuse
    $ whoami
    murmuria
  7. Testing the cap device

    $ id rahul
    uid=1000(rahul) gid=1000(rahul) groups=1000(rahul)
    $ id murmuria
    uid=1001(murmuria) gid=1001(murmuria) groups=1001(murmuria),10(wheel)
    $ whoami
    rahul
    $ openssl sha1 -hmac "$RANDSTR" "1000@1001" | awk '{ print $2 '} > /dev/caphash
         su - murmuria
    $ echo "1000@1001@$RANDSTR" > /dev/capuse
    $ whoami
    murmuria
  8. cap_device workflow

  9. Future Work

  10. Thoughtful Points

  11. Ouestions?

    References:
    • Ganti, A. 2008. Plan 9 authentication in Linux. SIGOPS Oper. Syst. Rev. 42, 5 (Jul. 2008), 27-33.
    • Provos, N., Friedl, M., and Honeyman, P. 2003. Preventing privilege escalation. In Proceedings of the 12th Conference on USENIX Security Symposium - Volume 12 (Washington, DC, August 04 - 08, 2003). USENIX Association, Berkeley, CA, 16-16.
    • Cox, R., Grosse, E., Pike, R., Presotto, D. L., and Quinlan, S. 2002. Security in Plan 9. In Proceedings of the 11th USENIX Security Symposium (August 05 - 09, 2002). USENIX Association, Berkeley, CA, 3-16.
  12. Related Reading