lkml.org 
[lkml]   [2004]   [Aug]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: PATCH: cdrecord: avoiding scsi device numbering for ide devices
    From
    Date
    Alan Cox <alan@lxorguk.ukuu.org.uk> writes:

    >> Regarding the current 2.6.8 kernel, wouldn't it be a better idea to
    >> move the CAP_SYS_RAWIO check to open time instead of when the ioctl is
    >> called?
    > This leads to all sorts of bugs where descriptors owned by one process
    > are given to another less priviledged one.

    Yes, but that's a class of bugs that are pretty well understood these
    days; handing privileged FDs around is a moderately common and
    pleasantly fine-grained way of doing things. Closing an FD is at least
    as easy as dropping a capability, which is what you'd have to do
    with the current scheme upon entering unprivileged code.

    Besides, setuid CD-recording tools already have to worry about closing
    unsafe FDs when they drop privileges, so this doesn't seem to add any
    new security holes...

    Thanks,

    --
    Adam Sampson <azz@us-lot.org> <http://offog.org/>
    -
    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/

    \
     
     \ /
      Last update: 2005-03-22 14:05    [W:0.021 / U:0.400 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site