lkml.org 
[lkml]   [2017]   [May]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: selinux: Use an other error code for an input validation failure in sidtab_insert()
    From
    Date
    > Have you tested this to determine any impact it may have on the
    > SELinux userspace?

    Not yet.


    > I would agree that EINVAL is probably more appropriate in this case,

    Thanks that a part of your view seems to fit also to mine.


    > but changing this return code has very little value

    I would appreciate if this aspect can clarified a bit more.


    > and may disrupt userspace if it assumes EINVAL means something else
    > when the policy load fails.

    Would you find an other error code better there?

    Do you care to distinguish an input validation failure in a specific
    function implementation from other error situations?

    Regards,
    Markus

    \
     
     \ /
      Last update: 2017-05-16 21:58    [W:4.138 / U:0.028 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site