lkml.org 
[lkml]   [2009]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[32/46] dst/connector: Disallow unpliviged users to configure dst
    2.6.31-stable review patch.  If anyone has any objections, please let us know.

    ------------------
    From: Philipp Reisner <philipp.reisner@linbit.com>

    (cherry picked from commit dbbb3431228784612848a1ec6061c78b4b708b5c)

    Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    drivers/staging/dst/dcore.c | 5 +++++
    1 file changed, 5 insertions(+)

    --- a/drivers/staging/dst/dcore.c
    +++ b/drivers/staging/dst/dcore.c
    @@ -854,6 +854,11 @@ static void cn_dst_callback(struct cn_ms
    struct dst_node *n = NULL, *tmp;
    unsigned int hash;

    + if (!cap_raised(nsp->eff_cap, CAP_SYS_ADMIN)) {
    + err = -EPERM;
    + goto out;
    + }
    +
    if (msg->len < sizeof(struct dst_ctl)) {
    err = -EBADMSG;
    goto out;



    \
     
     \ /
      Last update: 2009-10-16 19:21    [W:0.019 / U:1.280 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site