diff options
| author | Greg Kroah-Hartman <greg@kroah.com> | 2002-07-24 21:48:05 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <greg@kroah.com> | 2002-07-24 21:48:05 -0700 |
| commit | 025f143cddaaf9827fca546eba574fea6e0f514a (patch) | |
| tree | 654575f502fe3580965e5174960282a26168e871 /drivers | |
| parent | 59ece965a6c0c69787a57720c359094a71b5ba90 (diff) | |
| parent | 776e2421a796ff0ade7d681277576dd91f64e047 (diff) | |
Merge kroah.com:/home/greg/linux/BK/bleeding_edge-2.5
into kroah.com:/home/greg/linux/BK/lsm-2.5
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/char/tty_io.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c index 269abc090514..52ab887430e3 100644 --- a/drivers/char/tty_io.c +++ b/drivers/char/tty_io.c @@ -1458,6 +1458,10 @@ static int tty_fasync(int fd, struct file * filp, int on) if (!waitqueue_active(&tty->read_wait)) tty->minimum_to_wake = 1; if (filp->f_owner.pid == 0) { + retval = security_ops->file_set_fowner(filp); + if (retval) + return retval; + filp->f_owner.pid = (-tty->pgrp) ? : current->pid; filp->f_owner.uid = current->uid; filp->f_owner.euid = current->euid; |
