Re: exporting /proc entry for module

From: Randy.Dunlap (rddunlap_at_osdl.org)
Date: 01/13/05

  • Next message: William Lee Irwin III: "Re: thoughts on kernel security issues"
    Date:	Wed, 12 Jan 2005 20:54:36 -0800
    To: selvakumar nagendran <kernelselva@yahoo.com>
    
    

    selvakumar nagendran wrote:
    > --- Chris Friesen <cfriesen@nortelnetworks.com> wrote:
    >
    >>To fix this in the future, export a /proc entry that
    >>when written to
    >>causes your module to properly clean everything up
    >>and prevent anyone
    >>from getting new accesses. This then allows you to
    >>remove the module
    >>cleanly. Note that it may not be possible to
    >>cleanly deregister,
    >>depending on what your module is doing.
    >>
    >
    > How can I export a /proc entry for my module?

    . . . . . . . . . .

    You can study the valuable documents at
    http://kernelnewbies.org/documents/

    or google for other procfs example source code,
    which should find several examples for you,
    such as http://www.xenotime.net/linux/procfs_ex/

    -- 
    ~Randy
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: William Lee Irwin III: "Re: thoughts on kernel security issues"

    Relevant Pages

    • Re: [PATCH 1/1] pci: Block config access during BIST (resend)
      ... It actually only works for 4 byte accesses. ... It will certainly make the patch ... given device could have its config space blocked for a long time. ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • [PATCH] ppc64: fix memcpy_to/from_io
      ... which uses cache hints and thus is broken on non cacheable IO space). ... This re-implements them with some simple/gross C code doing 32 bits ... accesses when aligned and bytes accesses when not. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] Use MM_VM_SIZE in exit_mmap
      ... >> have seen this with the procfs code when process 1 accesses ... >> but does not tear its mm down. ... It's a natural outcome of reference ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: fh_verify: no root_squashed access hundreds of times a second again
      ... > accesses and stop them? ... > waste of resources, whether malicious or ill-configured. ... Having the log server ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)