[lkml]   [2007]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [AppArmor 37/41] AppArmor: Main Part
    On Thursday 12 April 2007 12:37, Alan Cox wrote:
    > > + if (PTR_ERR(sa->name) == -ENOENT && (check & AA_CHECK_FD))
    > > + denied_mask = 0;
    > Now there is an interesting question. Is PTR_ERR() safe for kernel
    > pointers on all platforms or just for user ones ?

    It's used for kernel pointers all over the place and mmap also mixes user
    addresses with -Exxx, so it's definitely supposed to work. I'm not sure how
    exactly the topmost page is kept from getting mapped.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2007-04-13 10:51    [W:0.020 / U:0.228 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site