2016年10月10日 星期一
boot RHEL7.2 on ceph RBD
experiment:
Environment:
Ceph : Monitor + OSD on the same node, SSD:HDD=1:4
Ceph HW configuration : QuantaGrid D51PH-1ULH x 3 , 12 x ST6000NM0034, 3 x INTEL SSDSC2BA20, Dual port intel 82599ES 10-Gigabit NIC
client : QuantaPlex T41S-2U, intel 82599ES 10-Gigabit NIC
Network : Quanta Fibre switch
boot RHEL7.2 on ceph RBD
R/W speed
Next:
boot on RBD through PXE
2016年10月2日 星期日
2016年10月1日 星期六
setuid in c
#include unistd.h
#include sys/types.h
int main () {
int real = getuid();
int euid = geteuid();
printf("The REAL UID =: %d\n", real);
printf("The EFFECTIVE UID =: %d\n", euid);
printf("setuid%d\n",setuid(euid));
system("cat /etc/shadow");
}
chmod u+s binary
int real = getuid();
int euid = geteuid();
printf("The REAL UID =: %d\n", real);
printf("The EFFECTIVE UID =: %d\n", euid);
printf("setuid%d\n",setuid(euid));
system("cat /etc/shadow");
}
chmod u+s binary
訂閱:
文章 (Atom)