/*
 * ioctl(TCGETS) on a pty -> sandbox/ioctl:on + allow/ioctl+TCGETS
 */

#include <sys/ioctl.h>
#include <termios.h>
#include <unistd.h>
#include <fcntl.h>

int main(void)
{
	int fd = open("/dev/ptmx", O_RDWR | O_NOCTTY);
	if (fd >= 0) {
		struct termios t;
		ioctl(fd, TCGETS, &t);
		close(fd);
	}
	return 0;
}
