--- nsapolicycoreutils/newrole/newrole.c 2006-11-29 17:11:18.000000000 -0500 +++ policycoreutils-1.33.6/newrole/newrole.c 2006-12-20 14:59:04.000000000 -0500 @@ -1120,10 +1120,10 @@ fd = open(ttyn, O_RDONLY); if (fd != 0) goto err_close_pam; - fd = open(ttyn, O_WRONLY); + fd = open(ttyn, O_RDWR); if (fd != 1) goto err_close_pam; - fd = open(ttyn, O_WRONLY); + fd = open(ttyn, O_RDWR); if (fd != 2) goto err_close_pam;