Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/23/12 in Posts

  1. adica citeste mai bine help-ul de la fopen (in mod normal trebuia sa fi facut deja asta daca ti-am zis sa mai pui ceva la fopen).
    1 point
  2. Like the encryption of disk partitions, encryption of swap space is done to protect sensitive information. Imagine an application that e.g. deals with passwords. As long as these passwords stay in physical memory, all is well. However, if the operating system starts swapping out memory pages to free space for other applications, the passwords may be written to the disk platters unencrypted and easy to retrieve for an adversary. Encrypting swap space can be a solution for this scenario. hp ~ # kldload geom_bde hp ~ # swapinfo Device 1K-blocks Used Avail Capacity /dev/ad0s1b 4194304 0 4194304 0% hp ~ # swapoff /dev/ad0s1b hp ~ # swapinfo Device 1K-blocks Used Avail Capacity hp ~ # grep swap /etc/fstab /dev/ad0s1b none swap sw 0 0 hp ~ # kldstat |grep geom 7 1 0xd94f1000 d000 geom_bde.ko hp ~ # geli onetime -e blowfish -l 128 -s 4096 -d ad0s1b hp ~ # swapon /dev/ad0s1b.eli hp ~ # swapinfo Device 1K-blocks Used Avail Capacity /dev/ad0s1b.eli 4194304 0 4194304 0% hp ~ # hp ~ # geli list Geom name: ad0s1b.eli EncryptionAlgorithm: Blowfish-CBC KeyLength: 128 Crypto: software Flags: ONETIME, W-DETACH, W-OPEN Providers: 1. Name: ad0s1b.eli Mediasize: 4294967296 (4.0G) Sectorsize: 4096 Mode: r1w1e0 Consumers: 1. Name: ad0s1b Mediasize: 4294967296 (4.0G) Sectorsize: 512 Mode: r1w1e1 Replace "/dev/ad0s1b" with "/dev/ad0s1b.eli" from "/etc/fstab" (also, you can do this with nano, vi, joe ..or your preffered editor) hp ~ # perl -pi -e 's/\/dev\/ad0s1b/\/dev\/ad0s1b.eli/' /etc/fstab hp ~ # grep swap /etc/fstab /dev/ad0s1b.eli none swap sw 0 0 hp ~ # Notes: - Do not forget to add geom_eli_load="YES" in "/boot/loader.conf" - Howto inspired from FreeBSD Handbook, Chapter 19 Storage => Encrypting Swap Space. - For more info, please do 'man geli' (or, you can read here.) - Screenshot with 'geli list'. - This howto was published on rtfm dot ro (date: May 11, 2010, 16:40)
    1 point
  3. http://www.youtube.com/watch?v=oZuusTVSCv4&feature=mfu_in_order&list=UL
    1 point
  4. http://www.youtube.com/watch?v=ISJrD8rPld0&feature=g-all-u&context=G2876abeFAAAAAAAABAA http://www.youtube.com/watch?v=L55ab9Wu2YU&feature=related http://www.youtube.com/watch?v=dEksje3McnE&feature=related
    1 point
This leaderboard is set to Bucharest/GMT+02:00
×
×
  • Create New...