Go to main content

Oracle SuperCluster M7 系列安全指南

退出打印视图

更新时间: 2016 年 2 月
 
 

启用加密的交换空间

对交换空间进行加密,无论它是 ZFS 卷还是原始设备。加密可确保在系统需要将页面换出到磁盘时保护其中包含的所有敏感数据(例如用户密码)。

  1. 登录到某一台计算服务器并以超级用户身份访问主机控制台。

    请参见登录到计算服务器并更改默认密码

  2. 编辑 /etc/vfstab 文件,并将 swap 设置为 encrypted
    # pfedit /etc/vfstab
    ...
    /dev/zvol/dsk/rpool/swap - - swap - no encrypted
    
  3. 创建并初始化 PKCS #11 密钥库。
    # pktool setpin keystore=pkcs11
    Enter token passphrase: changeme
    Create new passphrase: welcome1
    Re-enter new passphrase: welcome1
    
  4. 生成一个对称密钥并将其存储在 PKCS #11 密钥库中。
    # pktool genkey keystore=pkcs11 keytype=aes keylen=256 label=globalzone-key