Re: vfs_syscalls / fhstatfs / suser()

From: Alfred Perlstein (alfred_at_freebsd.org)
Date: 06/07/04

  • Next message: David A. Benfell: "file descripter leak in current with Qmail?"
    Date: Mon, 7 Jun 2004 07:57:50 -0700
    To: Pawel Jakub Dawidek <pjd@FreeBSD.org>
    
    

    * Pawel Jakub Dawidek <pjd@FreeBSD.org> [040607 04:45] wrote:
    > +>
    > +>
    > +> --- ./vfs_syscalls.c.orig Sun Jun 6 19:32:23 2004
    > +> +++ ./vfs_syscalls.c Sun Jun 6 19:33:12 2004
    > +> @@ -4128,11 +4128,6 @@ fhstatfs(td, uap)
    > +> sp->f_flags = mp->mnt_flag & MNT_VISFLAGMASK;
    > +> if ((error = VFS_STATFS(mp, sp, td)) != 0)
    > +> return (error);
    > +> - if (suser(td)) {
    > +> - bcopy(sp, &sb, sizeof(sb));
    > +> - sb.f_fsid.val[0] = sb.f_fsid.val[1] = 0;
    > +> - sp = &sb;
    > +> - }
    > +> return (copyout(sp, uap->buf, sizeof(*sp)));
    > +> }
    >
    > I'm not sure what the intention was, but I think we should probably
    > change first suser() to suser_cred(td->td_ucred, PRISON_ROOT) as leave
    > second one.
    >
    > PS. I'm CCing this to alfred@ who bring it from NetBSD.

    That sounds right.

    -- 
    - Alfred Perlstein
    - Research Engineering Development Inc.
    - email: bright@mu.org cell: 408-480-4684
    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
    

  • Next message: David A. Benfell: "file descripter leak in current with Qmail?"

    Relevant Pages

    • Re: file path: reference to other workbooks
      ... My intention at first is getting data from a file that is not opened. ... Now I get my file name in a cell, ... A1, which named "LastFile". ... If the workbook were open, ...
      (microsoft.public.excel.worksheet.functions)
    • Re: Thought on receiving two answers...
      ... interfere in anything unless they see action is needed to maintain the freedom of the list. ... And about CCing: You can CC: the person you are replying to if he's asked for it. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
      (Debian-User)
    • Re: Unscribe
      ... I don't know what the intention of this mail was: ... "unsubscribe", you should be sure to spell it correctly. ... first grade in primary school, ...
      (Debian-User)
    • [opensuse] OT Konsole for M$S
      ... Randall, Philipp, Will and Jonathan. ... had no intention to split the current ... To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx ... For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx ...
      (SuSE)
    • Re: Your bill
      ... > membership. ... ...for which reason I'm CCing you... ... To UNSUBSCRIBE, email to debian-user-request@lists.debian.org ...
      (Debian-User)