Dual-purpose seal for piston and piston rod